Files
typeshed/stdlib/2and3/tty.pyi
Philipp Hahn 4e3b8f7e15 tty.set*() accepts fd or file object (#2285)
<https://docs.python.org/2/library/tty.html>
> ... requires the termios module ...

<https://docs.python.org/2/library/termios.html#module-termios>
> All functions in this module take a file descriptor fd as their first
> argument. This can be an integer file descriptor ... or a file object,
2018-06-27 20:12:04 -07:00

18 lines
403 B
Python

# Stubs for tty (Python 3.6)
from typing import IO, Union
_FD = Union[int, IO[str]]
# XXX: Undocumented integer constants
IFLAG = ... # type: int
OFLAG = ... # type: int
CFLAG = ... # type: int
LFLAG = ... # type: int
ISPEED = ... # type: int
OSPEED = ... # type: int
CC = ... # type: int
def setraw(fd: _FD, when: int = ...) -> None: ...
def setcbreak(fd: _FD, when: int = ...) -> None: ...