2

I'm trying to remove input from the console after using input(). I am on Windows using Python and I have searched on SO but vt100 codes will not work. After input is given and enter is pressed I then want to go up a line and remove the input.

I also tried the information here: Delete the last input row in Python

But it did not remove the users input and instead printed <-[A on a newline

2
  • If you need user interaction with your app, you should consider changing your code to use a GUI , based on Tkinter or other portable tolkit (gtk+, QT+) - doubly so in Windows, where user proficiency on the terminal is diminished. Commented Mar 6, 2015 at 13:13
  • I think what you want to do is not possible under windows if you use the cmd command. There are other shells like powershell and cygwin. Have a try with these. Commented Mar 6, 2015 at 20:13

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.