14.04.2012 - When outputting binary files to the terminal, like your cat /dev/input/mouse0 The character string ESC [ introduces a "VT100 Control sequence" (compatibility with an old glass keypunch). If you just ^Z and run something else, this cleanup doesn't get done. Run command after login from specific tty .