I need to write a simple username password program, and I would like the characters to appear on the console as * not the character typed. I would really like some help with this, thank you.
Printable View
I need to write a simple username password program, and I would like the characters to appear on the console as * not the character typed. I would really like some help with this, thank you.
Okay, you have to show what you have done so far - them's the rules - its not a hire board
You need to use some kind of library for that, unfortunately. If you are on *nix, I think readline will be able to do it:
The GNU Readline Library
It is important to note that there is no standard C way of doing this, however:
FAQ- How do I get input without the user pressing enter?
>> Is there a ... way to not show any characters at all during the input ?
http://cboard.cprogramming.com/c-pro...tml#post823552
"get_password" using _getch():
http://cboard.cprogramming.com/c-pro...tml#post713308
_getch() for *nix:
http://cboard.cprogramming.com/c-pro...tml#post991411
gg