[Ilugc] Character inputs?

  • From: sbharathi@xxxxxxxxxxxxx (Bharathi Subramanian)
  • Date: Mon Aug 29 18:13:53 2005

On Mon, 29 Aug 2005, Muthukumaran R wrote:

In C character inputs can be obtained using some functions like
getchar(),getch(),scanf() etc.. These inputs gets terminated only
when end-of-line is given.

By default, the terminal is in Canonical or cooked mode. If you change
the mode to non-canonical mode, then you can get input char by char.
Read man tcsetattr for more info.

Bye :)
-- 
Bharathi S

Other related posts: