/ lib / prompt_toolkit / input / ansi_escape_sequences.pyc
ansi_escape_sequences.pyc
 1  o

 2  #��cg5�@s�	UdZddlmZmZmZddlmZddgZidej�dej	�d	ej
 3  �d
 4  ej�dej�dej
�d
ej�dej�dej�dej�dej�dej�dej�dej�dej�dej�dej�idej�dej�dej�dej�dej�dej�dej�dej �d ej!�d!ej"�d"ej#�d#ej$�d$ej%�d%ej&�d&ej'�d'ej(�d(ej��id)ej)�d*ej*�d+ej+�d,ej,�d-ej-�d.ej.�d/ej)�d0ej,�d1ej/�d2ej/�d3ej/�d4ej0�d5ej1�d6ej2�d7ej3�d8ej0�d9ej1��id:ej2�d;ej3�d<ej4�d=ej0�d>ej1�d?ej2�d@ej3�dAej4�dBej5�dCej6�dDej7�dEej8�dFej9�dGej:�dHej;�dIej<�dJej=��idKej>�dLej?�dMej@�dNejA�dOejB�dPejC�dQej<�dRej=�dSej?�dTej@�dUejA�dVejB�dWejC�dXejD�dYejE�dZejF�d[ejG��id\ej�d]ej�d^ej�d_ejH�d`ejI�daejJ�dbejK�dcejL�ddejM�deejN�dfejO�dgejP�dhejQ�diejR�djejS�dkejT�dlejU��idmejV�dnejW�doejX�dpejY�dqejZ�drej[�dsej\�dtej]�duej^�dvej_�dwej`�dxeja�dyeja�dzejb�d{ejc�d|ejd�d}ej#ej*f��id~ej#ej+f�dej#ej-f�d�ej#ej.f�d�ej#ejef�d�ej#ejbf�d�ej#ejcf�d�ej#ejdf�d�ejf�d�ejg�d�ejh�d�eji�d�ejj�d�ejk�d�ej#ejlf�d�ej#ejhf�d�ej#ejhf�d�ej#ejmf��id�ej#ejkf�d�ej#ejkf�d�ejn�d�ejo�d�ejp�d�ejq�d�ej)�d�ej,�d�ejn�d�ejo�d�ejp�d�ejq�d�ej,�d�ej)�d�ejr�d�ejs�d�ejt��id�eju�d�ejv�d�ejw�d�ej#ejnf�d�ej#ejof�d�ej#ejpf�d�ej#ejqf�d�ej#ej,f�d�ej#ej)f�d�ej#ejsf�d�ej#ejrf�d�ej#ejtf�d�ej#ejuf�d�ej#ejvf�d�ej#ejwf�d�ejx�d�ejy��id�ejz�d�ej{�d�ej|�d�ej}�d�ejx�d�ejy�d�ejz�d�ej{�d�ejz�d�ej{�d�ej~�d�ej�d�ej��d�ej��d�ej��d�ej��d�ej#ejyf��id�ej#ejxf�d�ej#ejzf�d�ej#ej{f�d�ej#ej|f�d�ej#ej}f�d�ej#ej~f�d�ej#ejf�d�ej#ej�f�d�ej#ej�f�d�ej#ej�f�d�ej#ej�f�d�ej#ejnf�d�ej#ejof�d�ej#ejpf�d�ej#ejqf�d�ej��d�ej���id�ej��d�ej��d�ej��d�ej��d�ej��d�ej��d�ej��d�ej��d�ej��d�ej��d�ej��d�ej��d�ej��d�ej��d�ej��d�ej��d�ej���id�ej��d�ej#ej�f�d�ej#ej�f�d�ej#ej�f�d�ej#ej�f�d�ej#ej�f�d�ej#ej�f�d�ej#ej�f�d�ej#ej�f�d�ej#ej�f�d�ej#ej�f�d�ej#ej�f�d�ej#ej�f�d�ej#ej�f�d�ej#ej�f�d�ej#ej�f�d�ej#ej�f��ej#ej�fej#ej�fej#ej�fej#ej�fd���Z�ee�eeeed�fffe�d<d�eee�ffd�d��Z�e��Z�d�S)�a�
 5  Mappings from VT100 (ANSI) escape sequences to the corresponding prompt_toolkit
 6  keys.
 7  
 8  We are not using the terminfo/termcap databases to detect the ANSI escape
 9  sequences for the input. Instead, we recognize 99% of the most common
10  sequences. This works well, because in practice, every modern terminal is
11  mostly Xterm compatible.
12  
13  Some useful docs:
14  - Mintty: https://github.com/mintty/mintty/blob/master/wiki/Keycodes.md
15  �)�Dict�Tuple�Union�)�Keys�ANSI_SEQUENCES�REVERSE_ANSI_SEQUENCES����������	�
16  ���
���������������›�����z[1~z[2~z[3~z[4~z[5~z[6~z[7~z[8~zz	z[~zOPzOQzORzOSz[[Az[[Bz[[Cz[[Dz[[Ez[11~z[12~z[13~z[14~z[15~z[17~z[18~z[19~z[20~z[21~z[23~z[24~z[25~z[26~z[28~z[29~z[31~z[32~z[33~z[34~zzzz[15;2~z[17;2~z[18;2~z[19;2~z[20;2~z[21;2~z[23;2~z[24;2~z
17  [27;2;13~z
18  [27;5;13~z
19  [27;6;13~zzzz[15;5~z[17;5~z[18;5~z[19;5~z[20;5~z[21;5~z[23;5~z[24;5~zzzz[15;6~z[17;6~z[18;6~z[19;6~z[20;6~z[21;6~z[23;6~z[24;6~z[62~z[63~z[200~zzz[3;2~z[5;2~z[6;2~z[2;3~z[3;3~z[5;3~z[6;3~z[2;4~z[3;4~z[5;4~z[6;4~z[3;5~z[5;5~z[6;5~z[3;6~z[5;6~z[6;6~z[2;7~z[5;7~z[6;7~z[2;8~z[5;8~z[6;8~zzzzzzzOAzOBzOCzODzOFzOHzzzzzzzzzzzzzzzzzzzzzzzzzzzzzOczOdzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz)zzzz.�returncCs4i}t��D]\}}t|t�s||vr|||<q|S)zc
20      Create a dictionary that maps prompt_toolkit keys back to the VT100 escape
21      sequences.
22      )r�items�
23  isinstance�tuple)�result�sequence�key�r2��C:\Users\Jacks.GUTTSPC\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\prompt_toolkit\input\ansi_escape_sequences.py�_get_reverse_ansi_sequencesHs
24  �r4N)��__doc__�typingrrr�keysr�__all__�	ControlAt�ControlA�ControlB�ControlC�ControlD�ControlE�ControlF�ControlG�ControlH�ControlI�ControlJ�ControlK�ControlL�ControlM�ControlN�ControlO�ControlP�ControlQ�ControlR�ControlS�ControlT�ControlU�ControlV�ControlW�ControlX�ControlY�ControlZ�Escape�ShiftEscape�ControlBackslash�ControlSquareClose�ControlCircumflex�ControlUnderscore�Home�Insert�Delete�End�PageUp�PageDown�BackTab�F1�F2�F3�F4�F5�F6�F7�F8�F9�F10�F11�F12�F13�F14�F15�F16�F17�F18�F19�F20�F21�F22�F23�F24�	ControlF1�	ControlF2�	ControlF4�	ControlF5�	ControlF6�	ControlF7�	ControlF8�	ControlF9�
25  ControlF10�
26  ControlF11�
27  ControlF12�
28  ControlF13�
29  ControlF14�
30  ControlF16�
31  ControlF17�
32  ControlF18�
33  ControlF19�
34  ControlF20�
35  ControlF21�
36  ControlF22�
37  ControlF23�
38  ControlF24�ScrollUp�
39  ScrollDown�BracketedPaste�Ignore�ShiftDelete�ShiftPageUp�
ShiftPageDown�ShiftInsert�
ControlDelete�
ControlPageUp�ControlPageDown�ControlShiftDelete�ControlShiftPageUp�ControlShiftPageDown�
ControlInsert�ControlShiftInsert�Up�Down�Right�Left�ShiftUp�	ShiftDown�
40  ShiftRight�	ShiftLeft�ShiftEnd�	ShiftHome�	ControlUp�ControlDown�ControlRight�ControlLeft�
41  ControlEnd�ControlHome�ControlShiftDown�ControlShiftUp�ControlShiftRight�ControlShiftLeft�ControlShiftEnd�ControlShiftHome�Control0�Control1�Control2�Control3�Control4�Control5�Control6�Control7�Control8�Control9�
ControlShift0�
ControlShift1�
ControlShift2�
ControlShift3�
ControlShift4�
ControlShift5�
ControlShift6�
ControlShift7�
ControlShift8�
ControlShift9r�str�__annotations__r4rr2r2r2r3�<module>s���������	�
42  ���
������������������� �!�"�*�-�.�/�0�1�2�3�4�5�6�7�:�;�<�=�>�?�@�A�B�C�D�E�F�G�H�I�J�K�L�M�N�O�P�Q�R�S�T�U�V�X�Y�[�\�]�^�_�`�a�b�c�i�j�k�n�o�q�r�s�t�u�v�w�x�y�z�{�}�~��������������	��
43  ���������������������������������� ��!��"��#��$��%��&��'��(��)��-��.��/��0��1��2��7��8��9��:��;��<��>��?��@��A��B��C��M��N��O��P��Q��R��T��U��V��W��X��Y��[��\��]��^��_��`��d��e��f��g��h��i��k��l��m��n��o��p��r��s��t��u��v��w��y��z��{��|��}��~�����������������	���
44  ���������
��������������������������������������������������������� ���!���"���#���$���%���&���'���(���)���*���+���
45  ,
46  
47  
48  ��(�3
49