[comp.os.minix] PC 1.5.10 termcap

cwr@pnet01.cts.com (Will Rose) (10/06/90)

I've recently been porting some stuff to/from Minix that used termcap,
and I found that the 1.5.10 termcap has some minor errors in the way it
defines the keypad keys.  Using the standard definitions from the Nutshell
handbook, the PC termcap looks like the one below.  (I've commented it
heavily to make it more understandable; obviously such comments are not
allowed in a working termcap.)
 
Good luck - Will
 
# Minix Termcap
#       Modified by Glen Overby <overby@plains.nodak.edu> 3/4/90
#               Added insert/delete line, character, etc.  Now supports
#               everything the console impliments that Termcap can use.
#       Minix Termcap PC 1.5.10 revised Oct 90 - cwr.
mx|minix|minix console:\        /* alternative terminal names */
        :bs:\                   /* terminal uses ^H to backspace */
        :co#80:\                /* the number of columns on the screen */
        :li#25:\                /* the number of lines on the screen */
        :cd=\E[0J:              /* clear to end of screen */
        :ce=\E[K:\              /* clear to end of line
        :cl=\E[H\E[0J:\         /* home cursor and clear screen */
        :so=\E[7m:se=\E[0m:\    /* standout video attribute on, off */
        :us=\E[4m:ue=\E[0m:\    /* underscore video attribute on, off */ 
        :mb=\E[5m:\             /* blink video attribute on */
        :md=\E[1m:\             /* bold video attribute on */
        :mr=\E[7m:\             /* reverse video attribute on */
        :me=\E[0m:\             /* turn off all video attributes */
        :sr=\EM:\               /* scroll back (reverse) one line */
        :cm=\E[%i%d;%dH:\       /* move cursor to row#, col# */
        :ho=\E[H:\              /* home cursor */
        :al=\E[L:AL=\E[%dL:\    /* add one, many lines below cursor */
        :dc=\E[P:DC=\E[%dP:\    /* delete one, many characters from cursor */
        :dl=\E[M:DL=\E[%dM:\    /* delete one, many lines from cursor */
        :do=\E[B:DO=\E[%dB:\    /* move cursor down one, many rows */
        :ic=\E[@:IC=\E[%d@:\    /* open up one, many spaces at cursor */
        :it#8:\                 /* number of spaces between tabs */
        :le=^H:LE=\E[%dD:\      /* move cursor left one, many columns */
        :nd=\E[C:\RI=\E[%dC:\   /* move cursor right one, many columns */
        :up=\E[A:UP=\E[%dA:\    /* move cursor up one, many rows */
        :ku=\E[A:\              /* up-arrow, same as up= */
        :kd=\E[B:\              /* down-arrow, same as do= */
        :kr=\E[C:\              /* right-arrow, same as nd= */  
        :kl=\E[D:\              /* left-arrow, same as bc= or bs or le= */
        :kh=\E[H:\              /* home key, same as ho= */
        :K1=\E[H:\              /* upper left keypad, Home */
        :K2=\E[V:\              /* upper right key of keypad, PgUp
        :K3=\E[G:\              /* centre key of keypad, 5 */
        :K4=\E[Y:\              /* lower left key of keypad, End */
        :K5=\E[U:\              /* lower right key of keypad, PgDn */
        :k9=\E[S:\              /* fake function key 9, keypad - */
        :k0=\E[T:               /* fake function key 10, keypad + */    
-----------------------------------------------------------------------
"If heaven too had passions  | Will Rose
     even heaven would       | UUCP: {nosc ucsd hplabs!hp-sdd}!crash!pnet01!cw
     grow old."  -  Li Ho.   | ARPA: crash!pnet01!cwr@nosc.mil
                             | INET: cwr@pnet01.cts.com

UUCP: {nosc ucsd hplabs!hp-sdd}!crash!pnet01!cwr
ARPA: crash!pnet01!cwr@nosc.mil
INET: cwr@pnet01.cts.com

ast@cs.vu.nl (Andy Tanenbaum) (10/09/90)

In article <4841@crash.cts.com> cwr@pnet01.cts.com (Will Rose) writes:
>Using the standard definitions from the Nutshell
>handbook, the PC termcap looks like the one below.  

I am not much of a termcap expert.  If the net concludes this one is better
than that in 1.5.10, I'll go over to it.

Andy Tanenbaum (ast@cs.vu.nl)