disable output in tty

* fixes the problem when ^[[A C D are printed