home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.programmer
- Path: sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!att!cbnewsk!ksc
- From: ksc@cbnewsk.cb.att.com (kenneth.s.cobler)
- Subject: Re: FAQ - keyboard input
- Organization: AT&T
- Distribution: usa
- Date: Fri, 24 Jul 1992 20:36:36 GMT
- Message-ID: <1992Jul24.203636.24771@cbnewsk.cb.att.com>
- References: <sprice.920723122640@eng.auburn.edu>
- Lines: 19
-
- In article <sprice.920723122640@eng.auburn.edu> sprice@eng.auburn.edu (Shannon W. Price) writes:
- >
- > The three types of input are :
- >
- > A single enter (e.g. Press enter to continue...)
- Possible solution:
- use getchar() to wait for enter key
-
- > A single character (e.g. a menu selection)
- use getchar() with termio set to return when at least 1 keystroke
-
- > A character string that may have imbedded blanks
- use gets() to get a string
-
-
- Kenneth Cobler ksc@cbnewsk.att.com or ken@ihlpm.att.com
- AT&T Bell Laboratories attmail!cbnewsk!ksc or attmail!ihlpm!ken
- 2000 N. Naperville Rd.
- Naperville, IL 60566
-