home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!wupost!cs.utexas.edu!rutgers!homecare!adsi!markp
- From: markp@adsi.homecare.com (Mark Parr)
- Newsgroups: comp.unix.programmer
- Subject: Re: real-time character input
- Message-ID: <1992Aug19.134620.14452@adsi.homecare.com>
- Date: 19 Aug 92 13:46:20 GMT
- References: <1992Aug13.112134.1@hamp.hampshire.edu>
- Organization: Application Data Systems, Inc.
- Lines: 24
-
- In article <1992Aug13.112134.1@hamp.hampshire.edu> jmolinari@hamp.hampshire.edu writes:
- > I'm writing a C program that requires real-time character input (i.e.,
- >character-by-character, as opposed to line-by-line). Let's say, for the sake
- >of argument, that I want to be able to move a cursor on the screen using the
- >cursor keys. How can I do this? I'm already familiar with vt100 escape codes,
- >so you can skip that part. Parting from that, I asked around and I got a
- >rather vague answer: "That is system specific." How true is this? If you
- >decide to take the task of explaining this to me, please pretend I know
- >nothing, which isn't too far from the truth... :-)
- >
- > jmolinari@hamp.hampshire.edu
-
-
- Have you looked into using Curses? It'll let you accept input character by
- character. Is not device dependent -- assumming you have a Terminfo file
- for the terminal that you are using (which is also required by 'vi' anyway).
-
- Give it a try......
-
- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- | |-------------| Application Data Systems | Phone: (601) 393-2046 | |
- | | Mark Parr | 1930-B 1st Commercial Dr. N | Fax: (601) 393-6605 | |
- | |-------------| Southaven, MS 38671 | markp@adsi.homecare.com | |
- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-