D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
usr
/
lib
/
python3.14
/
_pyrepl
/
__pycache__
/
Filename :
keymap.cpython-314.pyc
back
Copy
+ ��3j< � �R � R t RRRRRRRRRRRR R RRR RRRRRR/t/ RRbRRbRRbRRbRRbRR bRRbRRbRRbRRbRRbRRbR R bR!R!bR"R"bR#R#bR$R$b/ R%R%bR&R&bR'R'bR(R(bR)R)bR*R*bR+R+bR,R,bR-R-bR.R.bR/R/bR0R0bR1R1bR2R2bR3RbR4R4bR5R6bCR7RR8R8/Ct ! R9 R:]4 tR; R< ltR= R> ltRAR? ltR@# )Ban Keymap contains functions for parsing keyspecs and turning keyspecs into appropriate sequences. A keyspec is a string representing a sequence of key presses that can be bound to a command. All characters other than the backslash represent themselves. In the traditional manner, a backslash introduces an escape sequence. pyrepl uses its own keyspec format that is meant to be a strict superset of readline's KEYSEQ format. This means that if a spec is found that readline accepts that this doesn't, it should be logged as a bug. Note that this means we're using the '\C-o' style of readline's keyspec, not the 'Control-o' sort. The extension to readline is that the sequence \<KEY> denotes the sequence of characters produced by hitting KEY. Examples: 'a' - what you get when you hit the 'a' key '\EOA' - Escape - O - A (up, on my terminal) '\<UP>' - the up arrow key '\<up>' - ditto (keynames are case-insensitive) '\C-o', '\c-o' - control-o '\M-.' - meta-period '\E.' - ditto (that's how meta works for pyrepl) '\<tab>', '\<TAB>', '\t', '\011', '\x09', '\X09', '\C-i', '\C-I' - all of these are the tab character. �\�'�"�a��b��e��f��n� �r� �t� �v�� backspace�delete�down�end�enter�escape�f1�f2�f3�f4�f5�f6�f7�f8�f9�f10�f11�f12�f13�f14�f15�f16�f17�f18�f19�f20�home�insert�leftz page downzpage up�return�right�space� �tab�upc � � ] tR t^htRtR# )�KeySpecError� N)�__name__� __module__�__qualname__�__firstlineno__�__static_attributes__r: � �%/usr/lib/python3.14/_pyrepl/keymap.pyr9 r9 h s � �r@ r9 c �F � V ^8� d QhR\ R\ \ , /# )� �keysr2 )�str�list)�formats "rA �__annotate__rH l s � � � �S� �T�#�Y� r@ c �n � ^ p. pV\ V 4 8 d! \ W4 w r1VP V4 K0 V# )z3Parse keys in keyspec format to a sequence of keys.)�len�_parse_single_key_sequence�extend)rD �sr �ks & rA � parse_keysrO l s3 � � �A��A� �c�$�i�-�)�$�2��� ������Hr@ c �t � V ^8� d QhR\ R\ R\ \ \ , \ 3, /# )rC �keyrM r2 )rE �int�tuplerF )rG s "rA rH rH v s3 � � L� L�C� L�C� L�E�$�s�)�S�.�4I� Lr@ c �| � ^ p^ pRpV'