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

Cannot use backspace when entering new quest #16

Open
pfr-dev opened this issue Apr 7, 2021 · 5 comments
Open

Cannot use backspace when entering new quest #16

pfr-dev opened this issue Apr 7, 2021 · 5 comments

Comments

@pfr-dev
Copy link

pfr-dev commented Apr 7, 2021

when typing in a new quest the backspace key seems to be bound to the letter h and therefore backspace does not work.

To Reproduce
Steps to reproduce the behavior:

  1. open quest-tui
  2. press n key for new quest
  3. start typing and then try to delete using backspace
  4. See error

Desktop (please complete the following information):

  • OS: NetBSD 9.1_STABLE
  • Terminal emulator: xterm
  • Shell: ksh

Additional context
That's it. But While I'm at it, the blinking menu is pretty annoying... why does it blink?

@SDAChess
Copy link
Contributor

SDAChess commented Apr 7, 2021

Hello,

I have done some investigation, it seems that the program thinks you are inputing a CTRL + BACKSPACE somehow. Maybe it is your shell or terminal that does that, it seems that this is related to an issue with crossterm here. I'm going to write a quick fix, could you please tell me if you are able/willing to compile a test version of Quest to help me investigate this issue.

Have a great day,

SDA

@pfr-dev
Copy link
Author

pfr-dev commented Apr 9, 2021

please tell me if you are able/willing to compile a test version of Quest to help me investigate this issue.

Absolutely. Just give me some basic instructions to follow and I will do my best :)

@frustak
Copy link
Owner

frustak commented Apr 9, 2021

For the moment, could you change the delete keybinding? maybe it would solve the problem with deleting.
As @SDAChess mentioned, it seems the issue is related to crossterm.
Also, it would be helpful if you could try Quest with other terminals/shells to narrow down the problem and paste the exact error since currently, I'm unable to provide the mentioned setup to reproduce the error.

@pfr-dev
Copy link
Author

pfr-dev commented Apr 10, 2021

Also, it would be helpful if you could try Quest with other terminals/shells to narrow down the problem and paste the exact error since currently, I'm unable to provide the mentioned setup to reproduce the error.

Still in a ksh shell I get these results in the following terminals:
xst/st - backspace works as expected, menu blinks
kitty - all good, backspace works and no menu blinking.

I will try later tonight on another machine running linux with zsh and Alacritty

@pfr-dev
Copy link
Author

pfr-dev commented Apr 11, 2021

No issues on Alacritty in a zsh shell.

Although it is setting a background colour which overrides my terminal transparency settings... 😕

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

3 participants