0

Password masking

What is the alternative for getch() for mac. I want input from an used without displaying on the screen. Ps i am using Xcode on mac os mojave

25th Jan 2019, 12:49 AM
Tenzin Tashi
Tenzin Tashi - avatar
5 Answers
+ 1
Is this for the C language? I didn't think this function was exclusive to any certain OS. Is it not working for you?
25th Jan 2019, 1:21 AM
Zeke Williams
Zeke Williams - avatar
0
its for c++
25th Jan 2019, 1:22 AM
Tenzin Tashi
Tenzin Tashi - avatar
0
I think this is an outdated non-standard function defined in conio.h. I wouldn't use it
25th Jan 2019, 1:45 AM
Zeke Williams
Zeke Williams - avatar
0
yes. so whats the alternative for it ?
25th Jan 2019, 1:47 AM
Tenzin Tashi
Tenzin Tashi - avatar
0
There's nothing more than standard input as an alternative. Things like cin and getline. It's not event based though, so the user has to hit the enter key.
25th Jan 2019, 2:18 PM
Zeke Williams
Zeke Williams - avatar