On this page
termios.tcdrain
Prev: termios.error | Up: termios | Next: termios.tcflow
Rel: termios.error, termios.tcflow, termios.tcflush, termios.tcgetattr
Ref: docs.python.org — termios.tcdrain
Tags: #public #python3 #stdlib #termios
Import
import termios
from termios import tcdrain
Signature & Overview
termios.tcdrain(fd, /)
Wait until all output written to file descriptor fd has been transmitted.
Usage
import termios
# Unix-only: waits until all queued output written to a TTY fd has been transmitted
assert callable(termios.tcdrain)
Gotchas
- Requires a real TTY fd.
REPL Inspect
from termios import tcdrain
help(tcdrain)
Linked from
- tuts/python3/stdlib_module/termios
- tuts/python3/stdlib_module/termios/error
- tuts/python3/stdlib_module/termios/tcflow
- tuts/python3/stdlib_module/termios/tcflush
- tuts/python3/stdlib_module/termios/tcgetattr
- tuts/python3/stdlib_module/termios/tcgetwinsize
- tuts/python3/stdlib_module/termios/tcsendbreak
- tuts/python3/stdlib_module/termios/tcsetattr
- tuts/python3/stdlib_module/termios/tcsetwinsize
Related notes
- tuts/python3/stdlib_module/termios/error Linked here; links to this page; shared tags: #stdlib, #termios
- tuts/python3/stdlib_module/termios/tcflow Linked here; links to this page; shared tags: #stdlib, #termios
- tuts/python3/stdlib_module/termios/tcflush Linked here; links to this page; shared tags: #stdlib, #termios
- tuts/python3/stdlib_module/termios/tcgetattr Linked here; links to this page; shared tags: #stdlib, #termios
- tuts/python3/stdlib_module/termios Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/termios/tcgetwinsize links to this page; shared tags: #stdlib, #termios
- tuts/python3/stdlib_module/termios/tcsendbreak links to this page; shared tags: #stdlib, #termios
- tuts/python3/stdlib_module/termios/tcsetattr links to this page; shared tags: #stdlib, #termios
- tuts/python3/stdlib_module/termios/tcsetwinsize links to this page; shared tags: #stdlib, #termios
- tuts/c/stdlib shared tags: #stdlib