simon-git: putty (main): Simon Tatham

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Sun Jul 24 14:13:27 BST 2022


TL;DR:
  c88b6d18 Send xterm 216+ modifiers in small-keypad key escape sequences.
  a33cf224 Fix uninitialised field in ctrl_fileselect.

Repository:     https://git.tartarus.org/simon/putty.git
On the web:     https://git.tartarus.org/?p=simon/putty.git
Branch updated: main
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2022-07-24 14:13:27

commit c88b6d18535e71ee156e6fdfa2367f1892bc579d
web diff https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=c88b6d18535e71ee156e6fdfa2367f1892bc579d;hp=810e21de8234474ca606804c317a7dd5b6c686ab
Author: Simon Tatham <anakin at pobox.com>
Date:   Sun Jul 24 13:54:32 2022 +0100

    Send xterm 216+ modifiers in small-keypad key escape sequences.
    
    In the 'xterm 216+' function key mode, a function key pressed with a
    combination of Shift, Ctrl and Alt has its usual sequence like
    ESC[n~ (for some integer n) turned into ESC[n;m~ where m-1 is a 3-bit
    bitmap of currently pressed modifier keys.
    
    This mode now also applies to the keys on the small keypad above the
    arrow keys (Ins, Home, PgUp etc). If xterm 216+ mode is selected,
    those keys are modified in the same way as the function keys.
    
    As with the function keys, this doesn't guarantee that PuTTY will
    _receive_ any particular shifted key of this kind, and not repurpose
    it. Just as Alt+F4 still closes the window (at least on Windows)
    rather than sending a modified F4 sequence, Shift+Ins will still
    perform a paste action rather than sending a modified Ins sequence,
    Shift-PgUp will still scroll the scrollback, etc. But the keys not
    already used by PuTTY for other purposes should now have their
    modern-xterm behaviour in modern-xterm mode.
    
    Thanks to H.Merijn Brand for developing and testing a version of this
    patch.

 putty.h             |  4 +++-
 terminal/terminal.c | 16 ++++++++++++++--
 unix/window.c       |  8 +++++++-
 windows/window.c    |  6 +++++-
 4 files changed, 29 insertions(+), 5 deletions(-)

commit a33cf2240ef44c68537b116440c3184460e62bff
web diff https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=a33cf2240ef44c68537b116440c3184460e62bff;hp=c88b6d18535e71ee156e6fdfa2367f1892bc579d
Author: Simon Tatham <anakin at pobox.com>
Date:   Sun Jul 24 14:08:56 2022 +0100

    Fix uninitialised field in ctrl_fileselect.
    
    In commit 694d5184b72505a, I introduced the 'just_button' flag for
    CTRL_FILESELECT controls, and in commit ddcd93ab1230b2b I added a use
    of such a control with the flag set to true.
    
    But I forgot to set it to false everywhere else, which caused an
    assertion failure when selecting the Bell pane in Windows PuTTY. Oops.

 dialog.c | 1 +
 1 file changed, 1 insertion(+)



More information about the tartarus-commits mailing list