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

twin --hw=x11 has no numeric pad #71

Closed
jafcobend opened this issue Sep 5, 2022 · 6 comments
Closed

twin --hw=x11 has no numeric pad #71

jafcobend opened this issue Sep 5, 2022 · 6 comments
Assignees
Labels

Comments

@jafcobend
Copy link

I'm running TWIN 0.9.0 (ff76a04). I've just started doing some serious work with it but I stumbled into the numeric keypad isn't working regardless of whether the [NUMLOCK] is on or off. Its either simply ignored or it beeps... every key, even the symbols and [ENTER]. This is specifically when using TwTerm. I don't know of any TWIN apps beyond that allow text entry. The dialog for "file | execute" shows gibberish when typing on the numeric keypad.

I'm still currently on Devuan 1 (equiv Debian Jessie). I'll try it on the latest version of Devuan when I get a chance later today.

@cosmos72 cosmos72 self-assigned this Sep 6, 2022
@cosmos72 cosmos72 added the bug label Sep 6, 2022
@cosmos72
Copy link
Owner

cosmos72 commented Sep 6, 2022

Confirmed.
It's probably a very old bug due to intercepting [NUMLOCK] instead of letting it have its normal effect.
I'll check if there is some internal option or escape sequence to fix it.

@jafcobend
Copy link
Author

Thanks!!

@cosmos72
Copy link
Owner

cosmos72 commented Sep 7, 2022

I checked, it's really missing - there's a probably ancient /* TODO */ in its place at
https://github.com/cosmos72/twin/blob/master/server/hw/hw_x/keyboard.h#L95

I'll try to find a little time to implement it.

@cosmos72
Copy link
Owner

cosmos72 commented Sep 7, 2022

Fixed in commit 5ce47cd.

If numeric keypad still does not emit numbers when NumLock is active, you may need to printf '\033>' in each (broken) terminal inside twin.

@jafcobend
Copy link
Author

Thanks for this! I'm baking some packages for testing on my system now. I'll let you know how it works. It will be fun to get my 3840x1024 TWIN desktop back. ;-) The numeric keypad is pretty important... at least to me.

@jafcobend
Copy link
Author

Well... it half works. I'm not sure why hitting the [NUMLK] causes a beep in the terminal. But the real half that doesn't work ... is the navigation keys when [NUIMLK] is off. I know. I know. I think the last time I used the numeric pad for navigation was on the original IBM PC. But I like to test things ...

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

No branches or pull requests

2 participants