views:

165

answers:

1

In Perl there is a very handy module, Term::VT102, which allows you to create a screen in memory. This is very handy for scraping purposes since you can keep track of all the changes to portions of the screen and then export the screen as plain-text for processing. Is there an equivalent module in Python?

Followup Question: There are modules like Pexpect that allow you to screen scrape a VT100 screen, but how does VT100 differ from VT102?

+2  A: 

Pexpect, which has support for VT100, might be of help to you.

Dingo
That's something completely different than what he asked for. Term:VT102 emulates a terminal, Pexpect helps you interface programs that make use of a terminal.
Leon Timmermans
+1 @Leon, Dingo has a point, Pexpect includes an experimental component called "screen" that is meant to emulate a terminal screen (http://www.noah.org/wiki/Pexpect#experimental_extensions). I am going to check it out and see if it does the same as the VT102 Perl module.
pokstad
pokstad