On this page
  1. termios.tcdrain
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

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

REPL Inspect

from termios import tcdrain
help(tcdrain)

Linked from

Related notes