文件操作 - plain_text.cpython-311.pyc
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/python3/dist-packages/prompt_toolkit/output/__pycache__/plain_text.cpython-311.pyc
编辑文件内容
� �Ïc� � � � d dl mZmZ d dlmZ d dlmZ d dlmZ ddl m Z ddlmZ ddl m Z d gZ G d � d e � � ZdS )� )�List�TextIO)�CursorShape��Size)�Attrs� )�Output)� ColorDepth)�flush_stdout�PlainTextOutputc � � e Zd ZdZdeddfd�Zdefd�Zdefd�Z deddfd �Z deddfd �Zdeddfd�Zd2d �Z d2d�Zd2d�Zd2d�Zd2d�Zd2d�Zd2d�Zd2d�Zd2d�Zd2d�Zdededdfd�Zd2d�Zd2d�Zd3dededdfd�Zd eddfd!�Zd eddfd"�Zd eddfd#�Zd eddfd$�Z d2d%�Z!d2d&�Z"d'e#ddfd(�Z$d2d)�Z%d2d*�Z&d2d+�Z'd2d,�Z(d2d-�Z)d2d.�Z*de+fd/�Z,defd0�Z-defd1�Z.dS )4r aR Output that won't include any ANSI escape sequences. Useful when stdout is not a terminal. Maybe stdout is redirected to a file. In this case, if `print_formatted_text` is used, for instance, we don't want to include formatting. (The code is mostly identical to `Vt100_Output`, but without the formatting.) �stdout�returnNc �^ �� t �fd�dD � � � � sJ ��| _ g | _ d S )Nc 3 �8 �K � | ]}t �|� � V � �d S �N)�hasattr)�.0�ar s ��B/usr/lib/python3/dist-packages/prompt_toolkit/output/plain_text.py� <genexpr>z+PlainTextOutput.__init__.<locals>.<genexpr> s- �� � � �B�B�!�7�6�1�%�%�B�B�B�B�B�B� )�write�flush)�allr �_buffer)�selfr s `r �__init__zPlainTextOutput.__init__ s? �� ��B�B�B�B�/A�B�B�B�B�B�B�B�B�$���"$����r c �4 � | j � � � S )z*There is no sensible default for fileno().)r �fileno�r s r r! zPlainTextOutput.fileno s � ��{�!�!�#�#�#r c � � dS )Nzutf-8� r"