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

Problems with special characters input in prompt (Del, Backspace, etc.) #1

Open
KevCui opened this issue Oct 5, 2020 · 6 comments
Open

Comments

@KevCui
Copy link
Contributor

KevCui commented Oct 5, 2020

  • Use script to load images
  • Enter monocle mode with [m] and type some characters in exec prompt.
  • Type 'Delete' or 'Backspace' key won't remove inputted letters
@ckardaris
Copy link
Owner

ckardaris commented Oct 5, 2020

Backspace should be working. I forgot about delete. I will add it in the next commit.

ckardaris added a commit that referenced this issue Oct 5, 2020
@ckardaris
Copy link
Owner

@KevCui I believe is works as expected now. Tell me if you still have problems.

@ckardaris
Copy link
Owner

I suspected the problem may have to do with the terminal being used. xterm was working for me. I checked on some other terminals and the Backspace issue is there. Del works though. I will work on it

ckardaris added a commit that referenced this issue Oct 5, 2020
Some terminals have a different representation for Backspace, using the
number 127 (177 in octal or 0x7F in hex system).
@ckardaris
Copy link
Owner

I think the issue is resolved. Tell me if I got it right this time

@KevCui
Copy link
Contributor Author

KevCui commented Oct 5, 2020

Thanks for the fix. I checked the latest commit:

  • In alacritty, both delete and backspace are working well
  • In st, backspace works but delete is not working

(For me, backspace is necessary. Usually, I don't bother to use delete. Thanks for the effort!)

ckardaris added a commit that referenced this issue Oct 5, 2020
ckardaris added a commit that referenced this issue Oct 5, 2020
@ckardaris
Copy link
Owner

ckardaris commented Oct 5, 2020

NOTE

I should use this issue to fix problems relating to the input of other characters as well, i.e. Home and End keys, and also future requests for characters I have forgotten about.
That's why I am renaming it to something a bit more general and I won't be closing it just yet.

Any other input issues in the prompt should be discussed here.

@ckardaris ckardaris changed the title Cannot delete input in exec prompt Problems with special characters input in prompt (Del, Backspace, etc.) Oct 5, 2020
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