mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
<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,
18 lines
403 B
Python
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: ...
|