console window object -- Python library reference



Prev: macconsole options object Up: macconsole Top: Top

14.4.2. console window object

file -- attribute of console window
The file object corresponding to this console window. If the file is buffered, you should call file.flush() between write() and read() calls.
setmode (mode) -- Method on console window
Set the input mode of the console to C_ECHO, etc.
settabs (n) -- Method on console window
Set the tabsize to n spaces.
cleos () -- Method on console window
Clear to end-of-screen.
cleol () -- Method on console window
Clear to end-of-line.
inverse (onoff) -- Method on console window
Enable inverse-video mode: characters with the high bit set are displayed in inverse video (this disables the upper half of a non-ASCII character set).
gotoxy (x, y) -- Method on console window
Set the cursor to position (x, y).
hide () -- Method on console window
Hide the window, remembering the contents.
show () -- Method on console window
Show the window again.
echo2printer () -- Method on console window
Copy everything written to the window to the printer as well.


Prev: macconsole options object Up: macconsole Top: Top