Monday, February 15, 2016

Backspace, Tab not working in terminal Raw Cooked mode



I have seen such problems before. Take the backspace for example, the remote host expects some character to be used as
"erase/backspace" , while you pressing backspace in the terminal , the terminal
program will send some character to the remote host, if what the remote host expects
diffs with the characters sent by the terminal program, you would encounter this issue.
So a quick fix is as below: run command
$ stty -a
in the remote host, and find what is expected to be an erase code
in the output. Say erase=^?. In the terminal, type Ctrl+v and press your backspace. You'll see what code is sent as
"erase". Say it is ^H. In the remote host, run
$ stty erase ^H. (Note: use Ctrl+v + Backspace, do not type the ^ manually) You can fix the Tab issue with the same as above.
OR
export TERM=vt100

http://unix.stackexchange.com/questions/43103/backspace-tab-not-working-in-terminal-using-ssh

http://www.tldp.org/HOWTO/Keyboard-and-Console-HOWTO-5.html

No comments:

Blog Archive