As a companion to the change to terminfo, Mark has also completed work on
a re-vamped version of the Curses screen-handling library package. The new
version has many, many advantages over the previous version, some of which
are listed below:
- New curses can use insert/delete line/character capabilities
in terminals which have them, considerably speeding up many
applications
- It is possible to use the new curses on more than one type of
terminal at once
- All of the video attributes of a terminal (e.g. reverse video,
boldface, blinking, etc.) can be used, in tandem if possible
- New curses handles terminals like the Televideos with the
so-called 'magic cookie' glitch which leaves markers on the
screen for each change of video attributes
- The arrow and function keys of terminals can be input just as
though they were single characters, even on terminals which use
multi-character sequences for these functions. The new curses
does all necessary interpretation, passing back to the program
only a defined constant telling which key was pressed.
- There is a user-accessable scrolling region
- The use of shell escapes and the csh ^Z job control feature is
supported more fully
- On systems which can support the notion, updates of the screen
will abort if a character is typed at the keyboard, thus allowing
the application to possibly avoid useless output
- It should now be possible for most programs to be written very
portably to run on most versions of UNIX, including System III,
Berkeley UNIX, V7, Bell Labs internal UNIX, etc. This portability
extends to the use of most terminal modes, such as raw mode,
echoing, etc.
Now for the bad news. Mark, being an employee of Bell Labs, cannot release
any of his code. Estimates currently run as high as 18 months for a Bell
release. Even then, nothing could be guaranteed as to its price. As a result,
I have decided to do a public-domain implementation of both terminfo and the
new curses. They will be compatible with Mark's versions. I have arranged
for the library/database to be distributed with the next Berkeley Software
Distribution, 4.2BSD, in December of this year. It will also be made available
for free to any requestor. I agree with Mark when he says that terminfo is
clearly superior to termcap and deserves to be made a new and lasting standard.
I expect to be able to begin recruiting test sites for both curses and terminfo
by the end of September.
If you have any questions, comments or suggestions, please send them to me, not
the network.
Pavel Curtis
{decvax,allegra,vax135,harpo,...}!cornell!pavel
Pavel.Cornell@Udel-Relay