• PuTTY - ctrl+F5

    From Stephen.F@21:1/5 to All on Fri Dec 8 04:33:54 2017
    Hi there,

    I have a query about the behaviour of ctrl+F5 in PuTTY. This seems to have changed between Release 0.67 and 0.70. The desired behaviour is that shown in below from PuTTY 0.67.

    I connect to SunOS 5 in a ksh shell.

    Connected with PuTTY 0.67:

    cat ^[[1 # F5
    caT ^[R^[[1 # ctrl+F5

    Connected with PuTTY 0.70:

    cat ^[[1 # F5
    cat ^[[1 # ctrl+F5

    To give some context, PuTTY is used to access a key business application. PuTTY has been compiled 64bit with some amendments to meet the business needs. This build is only distributed inside the business, conforming to the licensing instructions.

    case VK_F5:
    code = (keystate[VK_SHIFT] & 0x80 ? 28 : 16);

    Change f11 and f12
    add function key code (28, 29)

    Modify the close window message to the below message
    case WM_CLOSE:

    The message string has been updated but no functional change.

    The 0.70 64bit build is compiled in Cygwin with these flags.

    CC = x86_64-w64-mingw32-gcc
    RC = x86_64-w64-mingw32-windres

    CFLAGS = -Wall -m64 -O2 -D_WINDOWS -DDEBUG -DWIN32S_COMPAT -DNO_MULTIMON -D_NO_OLDNAMES -I.././ -I../charset/ -I../windows/ -I../unix/
    LDFLAGS = -s
    RCFLAGS = $(RCINC) --define WIN32=1 --define _WIN32=1 --define WINVER=0x0A00 \
    -I.././ -I../charset/ -I../windows/ -I../unix/
    CFLAGS += -D_WIN32_IE=0x0A00
    CFLAGS += -DWINVER=0x0A00 -D_WIN32_WINDOWS=0x0A00 -D_WIN32_WINNT=0x0A00

    These above code changes are consistent between versions used. The settings have replicated across versions as closely as possible. The issue has been replicated using the definitive PuTTY 0.70 build from the downloads both 32bit and 64bit versions.
    To further try to eliminate settings, the Windows Registry entries for 0.67 have been copied to the location where the 0.70 version is looking.

    Attempting to fix this, the web was searched thoroughly, settings were scrutinised meticulously (although the possibility of one being overlooked has not been discounted), even a snapshot version has been compiled, compared SSH1 to SSH2 connection...



    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lorinczy Zsigmond@21:1/5 to All on Fri Jan 12 12:03:28 2018
    Hi, my putty-0.68 generates these sequences

    F5 ===> ESC [ 1 5 ~
    Shift + F5 ===> ESC [ 2 8 ~
    Ctrl + F5 ===> ESC [ 1 5 ~
    Alt + F5 ===> ESC ESC [ 1 5

    here is a test-program for Unix to print the generated characters: http://dtelnet.sourceforge.net/shkeys.c
    usage: cc -o shkeys shkeys.c && ./shkeys

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)