Term::VT102 0.82 review
DownloadTerm::VT102 is a class to emulate a DEC VT102 terminal. SYNOPSIS use Term::VT102; my $vt = Term::VT102->new ('cols' => 8
|
|
Term::VT102 is a class to emulate a DEC VT102 terminal.
SYNOPSIS
use Term::VT102;
my $vt = Term::VT102->new ('cols' => 80, 'rows' => 24);
while () { $vt->process ($_); }
The VT102 class provides emulation of most of the functions of a DEC VT102 terminal. Once initialised, data passed to a VT102 object is processed and the in-memory "screen" modified accordingly. This "screen" can be interrogated by the external program in a variety of ways.
This allows your program to interface with full-screen console programs by running them in a subprocess and passing their output to a VT102 class. You can then see what the application has written on the screen by querying the class appropriately.
OPTIONS
Setting cols or rows in the new() hash allows you to change the size of the terminal being emulated. If you do not specify a size, the default is 80 columns by 24 rows.
After initialisation, you can read and set the following terminal options using the option_read() and option_set() methods:
LINEWRAP line wrapping; 1=on, 0=off. Default is OFF.
LFTOCRLF treat LF (n) as CRLF (rn); 1=on, 0=off. Default OFF.
IGNOREXOFF ignore XON/XOFF characters; 1=on (ignore). Default ON.
Requirements:
Perl
Term::VT102 0.82 keywords