vt102 0.3.3

Simple vt102 emulator, useful for screen scraping

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
LGPL v3 (GNU Lesser General Public Lic... 
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
Sam Gibson
HOMEPAGE:
github.com
CATEGORY:
ROOT \ System \ Emulators
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

requirements

#vt102 emulator #screen scraping #vt102 #emulator #screen #scraping

Add your review!

SUBMIT