| Server IP : 50.21.180.56 / Your IP : 216.73.216.139 Web Server : Apache System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux User : ws67922704 ( 67922704) PHP Version : 8.5.13 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /kunden/proc/self/root/usr/lib/python3/dist-packages/breezy/__pycache__/ |
Upload File : |
�
p��g� � �H � S SK r S SKrSrSrS rSSSSS S
SSS
.rSS jrS rg)� N�restructuredtextzTerminal control functionalityc � � [ R S:X a g[ R R 5 ( d gSS Kn U R 5 [ U R S5 5 $ ! U R a gf = f)N�win32Fr �setaf) �sys�platform�stdout�isatty�curses� setupterm�error�bool�tigetstr)r s �1/usr/lib/python3/dist-packages/breezy/terminal.py�has_ansi_colorsr sk � � �|�|�w����:�:������������ �����(�)�)�� �<�<� ���s �A) �)A<�;A<� 0� 1� 2� 3� 4� 5� 6� 7)�black�red�green�yellow�blue�magenta�cyan�whitec �T � / nU( aY UR S5 ( a UR S5 USS nOUR S5 UR S[ U - 5 U( a UR S[ U - 5 SR S S
R U5 SU S45 $ )
a Returns a string using ANSI control codes to set the text color.
:param text: The text to set the color for.
:type text: string
:param fgcolor: The foreground color to use
:type fgcolor: string
:param bgcolor: The background color to use
:type bgcolor: string
�darkr � Nr r r � s [� ;� ms [0m)�
startswith�append�colors�join)�text�fgcolor�bgcolor�codes r �colorstringr0 6 s� � � �D�����f�%�%��K�K����a�b�k�G��K�K������D�6�'�?�*�+�����D�6�'�?�*�+��8�8�X�t�y�y����d�J�G�H�Hr% c � � [ R R SS5 nUR S5 ( d US:X a SR U 5 $ g)N�TERM� �xterm�dttermz]0;{})�os�environ�getr( �format)�title�terms r �
term_titler<