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

Smartphone (Android) - Backspace not working as expected #25

Open
SciLor opened this issue Jun 28, 2020 · 2 comments
Open

Smartphone (Android) - Backspace not working as expected #25

SciLor opened this issue Jun 28, 2020 · 2 comments

Comments

@SciLor
Copy link

SciLor commented Jun 28, 2020

If I am using my smartphone to write into the terminal, it is working as expected except that the backspace isn't working

If I write beep and press backspace it gets beepbee, another backspace beepbeebe, then beepbeebeb. after that it is possible to remove all chars by pressing backspace often enought.

You may reproduce it with that html file.
https://github.com/toniebox-reverse-engineering/hackiebox_cfw/tree/develop/web

@dragoncoder047
Copy link

I had the same sort of issue on Linux yesterday. While I was trying to make a patch for #50 I must have bumped something. At the time I took the screenshot it was fine, but now when I press any key (not just backspace) in multiline mode it repeats the previous line a bazillion times but still somehow maintains the correct input.

Screenshot 2022-03-23 at 09-21-40 Phoo repeating

All I was trying to type was the red part -- but it kept repeating the first line every time I typed a key.

@dragoncoder047
Copy link

dragoncoder047 commented Mar 24, 2022

I think I may have a fix for the problem of repeating the first line:

this.term.write("\r");

-this.term.write("\r");
+this.term.write(`\x1b[${this._termSize.cols}D`);

I forgot I had convertEol: true in the terminal options. It must have been converting the \r to a \r\n and pushing the cursor down when it shouldn't.

As to your problem @SciLor I have no idea what's going on there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants