fixed annoying up/down arrow problem in TTY