Article View: comp.unix.programmer
Article #115Re: FAQ - keyboard input
From: kenneth.s.cobler
Date: Fri, 24 Jul 1992 20:36
Date: Fri, 24 Jul 1992 20:36
19 lines
1033 bytes
1033 bytes
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
Technical Details
Message-ID:
<1992Jul24.203636.24771@cbnewsk.cb.att.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!att!cbnewsk!kscReferences:
<sprice.920723122640@eng.auburn.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.unix.programmer Path: arc1-ca.pugleaf.net!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