off topic: How to read input from keyboard by the Std. C?

Matthew Saltzman mjs at ces.clemson.edu
Fri Dec 10 19:06:17 UTC 2004


On Fri, 10 Dec 2004, Vinicius wrote:

> Hello,
>
> how to read input from keyboard (through a console) by the standard
> language C, please? I suppose an experienced Unix/Linux programmer has
> the answer.
>
> Excuse to post here, but I really need a tip about this question.
>
> TIA, Vinicius.

For line-oriented plain text interaction, just read from stdin and write
to stdout or stderr.  For character-level cursor control, use the ncurses
library (man ncurses).

-- 
		Matthew Saltzman

Clemson University Math Sciences
mjs AT clemson DOT edu
http://www.math.clemson.edu/~mjs




More information about the fedora-list mailing list