ANSI C No-echo keyboard input

For UNIX-like systems you want to play with the ECHO flag…

#include <termios.h>
...
struct termios t;
tcgetattr(fd, &t);
t.c_lflag &= ~ECHO;
tcsetattr(fd, TCSANOW, &t);
...

Leave a Comment