home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!usenet-feed.cc.umr.edu!mcs213f.cs.umr.edu!dminer
- From: dminer@mcs213f.cs.umr.edu (Dan Miner)
- Subject: Quest for standard keyboard layouts.
- Date: Mon, 7 Sep 1992 05:29:55 GMT
- Nntp-Posting-Host: mcs213f.cs.umr.edu
- Organization: University of Missouri - Rolla
- Sender: cnews@umr.edu (UMR Usenet News Post)
- Message-ID: <1992Sep7.052955.29532@umr.edu>
- Lines: 36
-
- 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."
-