Python input function not work properly in linux
Summary: sOluTiOn for arrow key and backspace etc not working when using input in linux

When I am writing a backup program for my minecraft server using python.

I find that when I want to use press backspace or arrow key, the input will not work properly.

Instead, it shows strange character like.


the solution is very simple

add import readline at the begining of the code will automatically fix the problem

Latest Updated Time：2019-10-06 21:01:22