views:

5

answers:

0

I am trying to do a replacement of gets_s() with getche() because I want to terminate the input when a tab is encountered rather than a carriage return is encountered. But I got into another problem. It used to be that when you type the uparrow key, previous input will repeat automatically in the screen, but after I use getche(), when I try to do the same, I only get garbage. Anybody experiencing the same problem? Is there a solution for it?