The tty module

(Unix only). This module contains some utility functions for dealing with tty devices. The following example shows how to switch the terminal window over to “raw” mode, and back again.

Example: Using the tty module
# File:

import tty
import os, sys

fileno = sys.stdin.fileno()

print raw_input("raw input: ")

print raw_input("cbreak input: ")

os.system("stty sane") # ...

raw input: this is raw input
cbreak input: this is cbreak input

A Django site. rendered by a django application. hosted by webfaction.