LogoopenSUSE Build Service > Projects
Sign Up | Log In

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

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.

Source Files

Filename Size Changed Actions
Term-Screen-1.06.tar.gz 9.3 KB over 1 year ago Download File
perl-Term-Screen.spec 2.97 KB 11 months ago Download File

Comments for home:zhonghuaren (0)