output "*" when keyboard is key

how to output a β€œ*” on the the screen when every something is press on the key board using qnx(with out the use of getch():wink:
(like requesting for password)

please help thanks thanks

In Photon? Or on the console?

If you are on the console, you will have to mess with the terminal settings to turn off echo and put it in raw mode. In photon, there are functions to more directly support this kind of feature.


In the terminal when PH is loaded

Turn off echo and place the terminal in raw mode. Then you have to handle editing and echo an * when the person hits a key, taking care to earse one when they hit backspace, etc… Look at the tcsetattr() function and friends (tc*()).