I have begun using nCurses and am using getstr(name) to enter charaters and it is working well. However I would like to enter multi-digit numbers and tried this:
This only enables me to enter one character. I want to enter '22' but it only lets me enter '2'. All of the books and online resources say getch() will only grab one character.I have searched all the resources but they don't have the example I'm looking for to handle multi-digit input for one data variable. So as my last resort I am submitting my question here.
Can someone help me out and explain a way that I can enter multi-digit variables with getch() or some other nCurses function?
0 · ·