Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Terminals

    pyte 0.4.6

    Download button

    No screenshots available
    Downloads: 394  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Sergei Lebedev | More programs
    LGPL / FREE
    February 29th, 2012, 16:07 GMT
    ROOT / Terminals

     Read user reviews (0)  Refer to a friend  Subscribe

    pyte description

    Simple VTXX compatible terminal emulator

    pyte is an in memory VTXXX-compatible terminal emulator. XXX stands for a series video terminals, developed by DEC between 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 emulators. pyte follows the suit.

    So, why would one need a terminal emulator library?

    - To screen scrape terminal apps, for example htop or aptitude.
    - 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.

    Note: pyte started as a fork of vt102, which is an incomplete implementation of VT100 features.

    Installation

    If you have setuptools you can use easy_install -U pyte. Otherwise, you can download the source from GitHub and run python setup.py install.

    Example

     >>> import pyte
     >>> screen = pyte.Screen(80, 24)
     >>> stream = pyte.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] ",
     ' ',
     ' ',
     ' ',
     ' ',
     ' ',
     ' ',
     ' ',
     ' ',
     ' ',
     ' ',
     ' ',
     ' ',
     ' ',
     ' ',
     ' ',
     ' ',
     ' ']
     >>>


    Options?


    pyte is not alone in the weird world of terminal emulator libraries, here's a few other options worth checking out: Termemulator, pyqonsole, webtty AjaxTerm


    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    terminal emulator | VTXXX terminal | VTXXX | terminal | emulator

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM