on-internet
← Community

ANSI C No-echo keyboard input

Stack Overflow ·

I've been Googling around with no luck. I'm looking for a way to do getc() or gets() or whatever that does not echo to the terminal. I saw kbhit() but this doesn't appear to be part of ANSI. Ideally, I'd like code that looks like char s[100]; no_echo_gets(s); /* Won't echo to screen while being typed */ printf("%s\n", s); Does anybody know a good ANSI compliant way to do this?

Comments

Sign in or sign up to comment and upvote.

No comments yet.