From: Dan Miner (dminer@mcs213f.cs.umr.edu)
Date: 09/07/92


From: dminer@mcs213f.cs.umr.edu (Dan Miner)
Subject: Quest for standard keyboard layouts.
Date: Mon, 7 Sep 1992 05:29:55 GMT


        I'm taking a crack at a word processing program. (Anyone,
familiar with qedit? :) I'm using curses. Here is the setup.

stdin: modified by ioctl(s) to quit processing STOP/START.
curses: noecho, nonl, raw.
        (I want FULL raw mode which is interesting to obtain.)

        Now, I'm using getch() (from curses) to get a char.
I want to use cursor keys. I get a sequence of chars for them.
ESC[A for up arrow
ESC[B for down arrow
etc...

        I wrote a little routine to look for this.
descript:
        watches for ESC
        once found, count the # of '[' chars
        store last unique char

        Now, I want to use the escape key but with this routine I
need to press it twice for it to come through. Also, any ALT key
combo sets the high bit (bit 7). I can handle this. I like it, but
my input routine for just ONE char is getting a little hairy.

        Is there a way to make the keys just ONE char? I want to
have it portable enough to run under BSD and SysV also. Any ideas how
I can get my keys standard for all these platforms?

Thanks,
Dan
Hackers' Guide Coordinator/(playing with my research :)

-- 
 Dan Miner
                                         email: dminer@cs.umr.edu
Computer Science          
University of Missouri-Rolla             "It all begins with a glimmer."