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

2016-02-23 23:18 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) #362

Merged
merged 1 commit into from Feb 24, 2016

Conversation

druzus
Copy link
Contributor

@druzus druzus commented Feb 23, 2016

  * shellinabox/vt100.jspp
    ! fixed key modifiers encoding.
      They should be calculated as bitfield for
         SHIFT = 1
         ALT   = 2
         CTRL  = 4
      and then incremented by 1.
      ref:
         http://www.xfree86.org/4.7.0/ctlseqs.html#PC-Style%20Function%20Keys
         http://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h2-PC-Style-Function-Keys
@KLuka
Copy link
Member

KLuka commented Feb 24, 2016

Hello, and thank you for your patch 👍

I looked at the provided specs and it seams that your patch correctly handles modifier keys, but I am not sure how to test it (manually). Could you maybe describe manual testcase (what keys to press and what should/shouldn't happen or something like that)?

@druzus
Copy link
Contributor Author

druzus commented Feb 24, 2016 via email

@KLuka
Copy link
Member

KLuka commented Feb 24, 2016

Thanks for posting extensive information. From xterm comparison we can really see that we have a bug in this area. I guess that it present since the first release, but no one noticed it until now :)

If you have nothing against then in some spare time I'll create next patches.

Please do :) Me and other users will be very grateful. And thank you again for your work 👍

KLuka added a commit that referenced this pull request Feb 24, 2016
2016-02-23 23:18 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)

Edit and function keys pressed with CTRL, ALT or SHIFT modifiers generated wrong key sequences.
@KLuka KLuka merged commit f17bc26 into shellinabox:master Feb 24, 2016
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

Successfully merging this pull request may close these issues.

None yet

2 participants