KiTTY is a popular fork of the SSH client PuTTY for Windows. With the default settings, however, there are two annoyances when you work on the server with programs such as Midnight Commander (mc), tmux or byobu:
- The F7 key opens KiTTY’s print dialog instead of passing the key on to the server (in mc, for example, “create directory”).
- The keys F1 to F4 do not trigger the expected actions on the server.
1. Disable the print dialog on F7
KiTTY’s keyboard shortcuts are defined in the file kitty.ini. With an installed version it is located at
%USERPROFILE%\AppData\Roaming\KiTTY\kitty.ini
With the portable version it sits in the same folder as kitty.exe. Close KiTTY first, then open the file in a text editor. The [Shortcuts] section contains:
[Shortcuts]
; Print all window buffer content (default is F7)
;printall=
Remove the semicolon in front of printall=. With no value after it, the shortcut is now disabled:
[Shortcuts]
printall=
If you do not use KiTTY’s keyboard shortcuts at all, you can also turn them all off at once in the [KiTTY] section:
[KiTTY]
; shortcuts: enable/disable keyboard shortcuts
shortcuts=no
2. Send F1 to F4 to the server correctly
Function keys are encoded differently depending on the terminal type. The default setting in KiTTY and PuTTY (ESC[n~) does not match what programs such as mc or tmux expect. The fix:
- Load the saved session.
- Under Terminal → Keyboard, select Xterm R6 for The Function keys and keypad.
- Save the session again under Session.
If this should apply to all new sessions, also save the setting in the Default Settings session. The same option exists in the original PuTTY, by the way.
Test
Open a new connection and start mc: F1 opens the help, F7 asks for the name of a new directory. In byobu, F2 should open a new window.
Originally published in 2021, revised in November 2026. Source: superuser.com.