File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/utils/__pycache__/vt.cpython-310.pyc
Back
o ;j�} � @ s, d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl ZddlZddl ZddlmZ ejdkZz ddlZddlZddlZddlZddlmZmZ ddlmZ W n eyv ddlZddlZddlZddlZY nw e� e!�Z"G dd� de#�Z$dd d�Z%dd � Z&G dd� d�Z'dS )ab :codeauthor: Pedro Algarvio (pedro@algarvio.me) salt.utils.vt ~~~~~~~~~~~~~ Virtual Terminal This code has been heavily inspired by Python's subprocess code, the `non blocking version of it`__, some minor online snippets about TTY handling with python including `Python's own ``pty`` source code`__ and `Pexpect`__ which has already surpassed some of the pitfalls that some systems would get us into. .. __: http://code.activestate.com/recipes/440554/ .. __: https://github.com/python/cpython/blob/3.3/Lib/pty.py .. __: https://github.com/pexpect/pexpect � N)� LOG_LEVELS�win32)�ReadFile� WriteFile)� PeekNamedPipec @ s e Zd ZdZdS )�TerminalExceptionz% Terminal specific exception N)�__name__� __module__�__qualname__�__doc__� r r �A/opt/saltstack/salt/lib/python3.10/site-packages/salt/utils/vt.pyr <