fix for setting the tty parameters back + left/right arrow key feature