Este é um blog onde anoto dicas técnicas de informática e computação. This is a blog where I write down technical tips on computing. Be aware that some resources used in this blog may use cookies to collect information used by Ads and Google Analytics. I do not monetize from this website, neither require or use personal information.
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
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment