question on keyboard mapping using curses

Leslie Pennington les at milton.u.washington.edu
Tue Jun 18 05:38:31 AEST 1991


I have been putting the finishing touches on a personal text editor
which reads keyboard input from a vt terminal in raw mode and responds
to keystrokes in an appropriate manner.  I would like to be able to
use the DEL key to delete the character at the cursor position, but
have not found the right way to get this keystroke to return a unique
escape sequence; instead it always returns a '.'.  If I use exactly
the same code on an Ultrix system using cursesX instead of curses, I
do get a unique escape sequence.  What do I need to do to get curses
to work like cursesX in this case??

Thanks,

Les Pennington



More information about the Comp.unix.questions mailing list