control

Primary interface layer for terminal control

This module provides a semi-portable interface between the various methods of terminal control as the ANSI and win32 methods are quite different.


Attributes

a COLORS

('black', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan', 'white')

a DISPLAY_CODES

('default', 'bright', 'dim', 'underline', 'blink', 'reverse', 'hidden')

Functions

f display(self, codes=[], fg=None, bg=None) ...

Sets the display attributes on the terminal.

For details on arguments see documentation for color function in the abstract module.

f reset(self) ...

Resets the terminal screen.

Avoid using this method, it will probably be moved in the next version.

See the source for more information.