Windows Console - Tab and the Tab Key

  • Thread starter Thread starter Lucky BC
  • Start date Start date
L

Lucky BC

Guest
Hi all,

I am new to the C++ Windows Console. I have a program of getting input from stdin and pressing tab key to make tabs on the Windows Console but I got that the window console printing the same text behind the cursor.


For example, I have a program waiting for the input from using fgets function:

// Pressing tabs 2 times

Get Name: Lucky\tab \tabB.C


The current text on the screen will be like this:

Get Name: Lucky C B.C B.C


And my question is What should I do to stop the problem?

Continue reading...
 
Back
Top