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

termios.tcsetattr

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


Import

import termios
from termios import tcsetattr

Signature & Overview

termios.tcsetattr(fd, when, attributes, /)

Set the tty attributes for file descriptor fd.

Usage

import termios

# Applies modified terminal attributes (TCSADRAIN / TCSAFLUSH / TCSANOW)
assert callable(termios.tcsetattr)

Gotchas

REPL Inspect

from termios import tcsetattr
help(tcsetattr)

Linked from

Related notes