A simple all-Perl Term::Cap based screen positioning module

Edit Package perl-Term-Screen

Term::Screen is a very simple screen positioning module that should work wherever C<Term::Cap> does. It is set up for Unix using stty's but these dependences are isolated by evals in the C<new> constructor. Thus you may create a child module implementing Screen with MS-DOS, ioctl, or other means to get raw and unblocked input. This is not a replacement for Curses -- it has no memory. This was written so that it could be easily changed to fit nasty systems, and to be available first thing.

The input functions getch, key_pressed, echo, and noecho are implemented so as to work under a fairly standard Unix system. They use 'stty' to set raw and no echo modes and turn on auto flush. All of these are 'eval'ed so that this class can be inherited for new definitions easily.

Term::Screen was designed to be "required", then used with object syntax as shown above. One quirk (which the author was used to so he didn't care) is that for function key translation, no delay is set. So for many terminals to get an esc character, you have to hit another char after it, generally another esc.

Refresh
Refresh
Source Files
Filename Size Changed
Term-Screen-1.06.tar.gz 0000009522 9.3 KB
perl-Term-Screen.spec 0000003046 2.97 KB
Latest Revision
Huaren Zhong's avatar Huaren Zhong (zhonghuaren) committed (revision 7)
Comments 0
openSUSE Build Service is sponsored by