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

termios.tcflush

Prev: termios.tcflow | Up: termios | Next: termios.tcgetattr
Rel: termios.error, termios.tcdrain, termios.tcflow, termios.tcgetattr
Ref: docs.python.org — termios.tcflush
Tags: #public #python3 #stdlib #termios


Import

import termios
from termios import tcflush

Signature & Overview

termios.tcflush(fd, queue, /)

Discard queued data on file descriptor fd.

Usage

import termios

# Unix-only: discards unread input (TCIFLUSH) or unwritten output (TCOFLUSH)
assert callable(termios.tcflush)

Gotchas

REPL Inspect

from termios import tcflush
help(tcflush)

Linked from

Related notes