How would I hide keystokes when I use the keyboard?
When you use scanf fgets and gets, they show they print the keys to the screen..
I want to hide them.

Recommended Answers

All 2 Replies

I'm not sure if standard C has any functions that do this. LINK

You can try to use some compiler and OS specific functions, but that would reduce portability.

You could always use a library like SDL (its portable) and lets you capture the keystrokes and mouse of the computer without displaying anything.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.