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

tty.cfmakeraw

Prev: tty.cfmakecbreak | Up: tty | Next: tty.setcbreak
Rel: tty.cfmakecbreak, tty.setcbreak, tty.setraw
Ref: docs.python.org — tty.cfmakeraw
Tags: #public #python3 #stdlib #tty


Import

import tty
from tty import cfmakeraw

Signature & Overview

tty.cfmakeraw(mode)

Make termios mode raw.

Usage

import tty

# Python 3.12+ Unix-only: pure helper mutating a tcgetattr() mode list into raw mode
assert hasattr(tty, 'cfmakeraw') or True

Gotchas

REPL Inspect

from tty import cfmakeraw
help(cfmakeraw)

Linked from

Related notes