Home | History | Annotate | Download | only in Lib

Lines Matching refs:tty

16 #          Gregory P. Smith (tty support & GetPassWarning)

32 the tty. If no tty is available defaults to sys.stderr.
36 EOFError: If our input tty or stdin was closed.
42 tty = None
44 # Always try reading and writing directly on the tty first.
45 fd = os.open('/dev/tty', os.O_RDWR|os.O_NOCTTY)
46 tty = os.fdopen(fd, 'w+', 1)
47 input = tty
49 stream = tty
80 # We can't control the tty or stdin. Give up and use normal IO.
82 del input, tty # clean up unused file objects before blocking