Path: utzoo!utgpu!watmath!att!chinet!john From: john@chinet.chi.il.us (John Mundt) Newsgroups: comp.lang.c Subject: Re: Novice soft key question... Message-ID: <9166@chinet.chi.il.us> Date: 4 Aug 89 18:44:11 GMT References: <11086@polya.Stanford.EDU> Reply-To: john@chinet.chi.il.us (John Mundt) Organization: Chinet - Public Access Unix Lines: 21 In article <11086@polya.Stanford.EDU> wolfe@Polya.Stanford.EDU (Michael R. Wolfe) writes: > I'm trying to write an application using soft keys on a Unix machine >Getchar and getc are buffered, so I've been trying to set the terminal >to raw mode the only way I've gotten it to work at all is through >Curses, which I don't really need. How have others solved this >problem? (I'm sure that it's pretty basic). Easiest is just to put a newline at the end of each function key string but that makes it pretty terminal specific. Then, there is MINICURSES, which is a subset of curses and doesn't add that much to your executable. It is much too much of a hassle to go to raw mode and not have terminal strings interpeted for you. Really! You'd have to all the processing for backspaces, interrupts, etc. -- --------------------- John Mundt Teachers' Aide, Inc. P.O. Box 1666 Highland Park, IL john@chinet.chi.il.us (312) 998-5007 (Day voice) || -432-8860 (Answer Mach) && -432-5386 Modem