«Chicks dig dudes with terminals» © @samfoo
vt102? It's an in memory VTXXX-compatible terminal emulator.
XXX stands for a series video terminals, developed by
1970 and 1995. The first, and probably the most famous one, was VT100
terminal, which is now a de-facto standard for all virtual terminal
vt102 follows the suit.
So, why would one need a terminal emulator library?
- To screen scrape terminal apps, for example
- To write cross platform terminal emulators; either with a graphical (xterm, rxvt) or a web interface, like AjaxTerm.
- To have fun, hacking on the ancient, poorly documented technologies.
>>> import vt102 >>> screen = vt102.Screen(80, 24) >>> stream = vt102.Stream() >>> stream.attach(screen) >>> stream.feed(u"\u001b7\u001b[?47h\u001b)0\u001b[H\u001b[2J\u001b[H" u"\u001b[2;1HNetHack, Copyright 1985-2003\r\u001b[3;1" u"H By Stichting Mathematisch Centrum and M. " u"Stephenson.\r\u001b[4;1H See license for de" u"tails.\r\u001b[5;1H\u001b[6;1H\u001b[7;1HShall I pi" u"ck a character's race, role, gender and alignment f" u"or you? [ynq] ") >>> screen.display [' ', 'NetHack, Copyright 1985-2003 ', ' By Stichting Mathematisch Centrum and M. Stephenson. ', ' See license for details. ', ' ', ' ', "Shall I pick a character's race, role, gender and alignment for you? [ynq] ", ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '] >>>