Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backspace does not work in SSH session #1061

Closed
0xc0fed00d opened this issue May 30, 2017 · 6 comments
Closed

Backspace does not work in SSH session #1061

0xc0fed00d opened this issue May 30, 2017 · 6 comments
Labels
bug report Something is not working properly.

Comments

@0xc0fed00d
Copy link

When I'm pressing the backspace key of my keyboard while connected to termux via openssh, instead of deleting text left of the cursor, it adds spaces. The left arrow key is not working also.

stty -a gives me the following output:

intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R;
werase = ^W; lnext = ^V; discard = ^O; min = 1; time = 0;
-parenb -parodd -cmspar cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany -imaxbel iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0I'm running termux on Android 7.1.1. 
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke -flusho -extproc

Ctrl+V Backspace also results in ^?. stty erase ^? didn't help.

I'm running termux on Android 7.1.1, OpenSSH_7.5p1.

@Neo-Oli Neo-Oli added the bug report Something is not working properly. label Jun 6, 2017
@fornwall
Copy link
Member

Which terminal emulator do you use when connecting to Termux over openssh?

@0xc0fed00d
Copy link
Author

I'm using termite. I do not have any issues with other SSH connections.

@fornwall
Copy link
Member

What is your TERM environment variable when running under termite (as shown when running echo $TERM)?

Also, when ssh:ed into Termux using termite, could you:

  1. Run apt install vtutils
  2. Run vtshowkeys.
  3. Press backspace on your keyboard.

and write the output here?

@0xc0fed00d
Copy link
Author

$ echo $TERM
xterm-termite
$ ssh <phone-ip> -p 8022
-bash-4.4$ vtshowkeys
0177 127 0x7F Delete			^?

I hope that's sufficient.

@v3ree
Copy link

v3ree commented Oct 6, 2017

Maybe this info is useful: after you ssh in, if you change the terminal type ($TERM) from xterm-termite to something like xterm-color256 or vt100 (ex. just write TERM=xterm-color256 and press enter) the keyboard will work ok.

ghost pushed a commit that referenced this issue Jun 30, 2019
ghost pushed a commit that referenced this issue Jun 30, 2019
@ghost
Copy link

ghost commented Jun 30, 2019

Added fix in 9568028.

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug report Something is not working properly.
Projects
None yet
Development

No branches or pull requests

4 participants