vt102 0.3.3

Simple vt102 emulator, useful for screen scraping
vt102 is a software that implements a subset of the vt102 specification (the subset that should be most useful for use in software). Two classes: stream, which parses the command stream and dispatches events for commands, and screen which, when used with a stream maintains a buffer of strings representing the screen of a terminal.

Why would you ever want to use this?

 * Screen scraping.
 * Cheating at nethack (I swear to god I will ascend)
 * Chicks dig terminals, and err... VT?

Here's a quick example:

>>> from vt102 import screen, stream
>>> st = stream()
>>> sc = screen((10, 10))
[" ",
 " ",
 " ",
 " ",
 " ",
 " ",
 " ",
 " ",
 " ",
 " "]
>>> sc.attach(st)
>>> st.process("Text goes here")
>>> repr(sc)
["Text goes ",
 "here ",
 " ",
 " ",
 " ",
 " ",
 " ",
 " ",
 " ",
 " "]

last updated on:
February 7th, 2011, 20:39 GMT
price:
FREE!
developed by:
Sam Gibson
license type:
LGPL v3 (GNU Lesser General Public Lic... 
category:
ROOT \ System \ Emulators

FREE!

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

Add your review!

SUBMIT