ANSI — This implements an ANSI terminal emulator as a subclass of screen.

This implements an ANSI terminal emulator as a subclass of screen.

$Id: ANSI.py 491 2007-12-16 20:04:57Z noah $

class ANSI.ANSI(r=24, c=80)

This class encapsulates a generic terminal. It filters a stream and maintains the state of a screen object.

write_ch(ch)

This puts a character at the current cursor position. cursor position if moved forward with wrap-around, but no scrolling is done if the cursor hits the lower-right corner of the screen.

class ANSI.term(r=24, c=80)

This is a placeholder. In theory I might want to add other terminal types.

Previous topic

pexpect — A module for spawning child applications and controlling them automatically.

This Page