~malept/ubuntu/lucid/python2.6/dev-dependency-fix

« back to all changes in this revision

Viewing changes to Doc/library/tty.rst

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-02-13 12:51:00 UTC
  • Revision ID: james.westby@ubuntu.com-20090213125100-uufgcb9yeqzujpqw
Tags: upstream-2.6.1
ImportĀ upstreamĀ versionĀ 2.6.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
:mod:`tty` --- Terminal control functions
 
3
=========================================
 
4
 
 
5
.. module:: tty
 
6
   :platform: Unix
 
7
   :synopsis: Utility functions that perform common terminal control operations.
 
8
.. moduleauthor:: Steen Lumholt
 
9
.. sectionauthor:: Moshe Zadka <moshez@zadka.site.co.il>
 
10
 
 
11
 
 
12
The :mod:`tty` module defines functions for putting the tty into cbreak and raw
 
13
modes.
 
14
 
 
15
Because it requires the :mod:`termios` module, it will work only on Unix.
 
16
 
 
17
The :mod:`tty` module defines the following functions:
 
18
 
 
19
 
 
20
.. function:: setraw(fd[, when])
 
21
 
 
22
   Change the mode of the file descriptor *fd* to raw. If *when* is omitted, it
 
23
   defaults to :const:`termios.TCSAFLUSH`, and is passed to
 
24
   :func:`termios.tcsetattr`.
 
25
 
 
26
 
 
27
.. function:: setcbreak(fd[, when])
 
28
 
 
29
   Change the mode of file descriptor *fd* to cbreak. If *when* is omitted, it
 
30
   defaults to :const:`termios.TCSAFLUSH`, and is passed to
 
31
   :func:`termios.tcsetattr`.
 
32
 
 
33
 
 
34
.. seealso::
 
35
 
 
36
   Module :mod:`termios`
 
37
      Low-level terminal control interface.
 
38