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

[Bug]: Backpace adds spaces for ssh session from Alacritty #7511

Closed
DusanLesan opened this issue Sep 12, 2021 · 5 comments
Closed

[Bug]: Backpace adds spaces for ssh session from Alacritty #7511

DusanLesan opened this issue Sep 12, 2021 · 5 comments
Labels
bug report Something is not working properly.

Comments

@DusanLesan
Copy link

Problem description

After I ssh into the environment run by Termux, I see backspace key adding spaces instead of removing text. The problem is only visual since the text is correct after pressing enter. I have tried this on st and Alacritty and only Alacrity is causing this problem. The issue like this used to exist for termite and maybe the solution can be similar. Exporting TERM to be vt100 fixes the issue temporarily.

What steps will reproduce the bug?

  • SSH into the device running Termux
  • Enter any command
  • Press backspace key

What is the expected behavior?

The backspace should do as backspace does

System information

termux-info:

Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://main.termux-mirror.ml/ stable main
# game-repo (sources.list.d/game.list)
deb https://dl.bintray.com/grimler/game-packages-24 games stable
# science-repo (sources.list.d/science.list)
deb https://dl.bintray.com/grimler/science-packages-24 science stable
Updatable packages:
All packages up to date
Android version:
11
Kernel build information:
Linux localhost 4.9.276-perf-gd8994453fb6b #1 SMP PREEMPT Sat Aug 7 02:41:36 UTC 2021 aarch64 Android
Device manufacturer:
Xiaomi
Device model:
POCO F1
@DusanLesan DusanLesan added the bug report Something is not working properly. label Sep 12, 2021
@DusanLesan DusanLesan changed the title [Bug]: [Bug]: Backpace adds spaces for ssh session from Alacritty Sep 12, 2021
@suhan-paradkar
Copy link
Contributor

Looks like a problem with registering (im)proper keycodes, what do you think @xeffyr ??

@DusanLesan
Copy link
Author

Well the issue was with either my shell or apk source. I was not aware of play store thing. Got it from fdroid now and it is ok. Closing the issue

@DusanLesan
Copy link
Author

Spoke too soon. Sorry for this. It did work but stopped after exit and ssh again

@DusanLesan DusanLesan reopened this Sep 12, 2021
@Grimler91
Copy link
Member

Could you try running infocmp > alacritty.terminfo in alacritty, scp the file to termux, and then run tic -x alacritty.terminfo in termux? After that restart the shell and it hopefully works.

If it works, please share the alacritty.terminfo file here so that we can add it to ncurses

@ghost
Copy link

ghost commented Sep 12, 2021

Compiling https://github.com/alacritty/alacritty/blob/master/extra/alacritty.info (terminfo) should be sufficient.

Harshiv-Patel pushed a commit to Harshiv-Patel/termux-packages that referenced this issue Jun 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Something is not working properly.
Projects
None yet
Development

No branches or pull requests

3 participants