Support backspace in command line