This document describes how to prepare a session file (configuration file) for KiTTY for Microsoft Windows.
First, download KiTTY and run kitty_portable.exe
.
You will see newly created folders Proxies
and Sessions
.
Let's focus on the Sessions
folder.
There is already a file Default Settins
.
You can copy and edit this file.
But first, let's change the settings in the GUI.
Enter myhost
(for example) as [Host Name], and save it as testconf
.
You will see testconf
file created.
The session file is in the form of Item\Value\
.
You will see that the HostName
value set earlier is correctly set to myhost
.
If you want to edit the file directly, use the following reference for help. It may be sufficient to include in the session file only those of the many items that you want to change.
Percent encoding can be used for characters in Value.
* This reference was created by me personally by analyzing the KiTTY source code. Sorry for any errors. Also, some items are described as T.B.D.
* Note that the content may vary depending on the version and build options of KiTTY.
If the Protocol
is adb
, this is interpreted as: -a
or transport-any
: any, -d
or transport-usb
: usb, -e
or transport-local
: emulator, or otherwise serial
ssh
(SSH), serial
(Serial), telnet
(Telnet), rlogin
(Rlogin), supdup
(SUPDUP), raw
(Raw), adb
(ADB), ssh-connection
(Bare ssh-connection)
0: Never
1: Only on clean exit
2: Always
0: None
1: Printable output
2: All session output
3: SSH packets
4: SSH packets and raw data
The file name can contain &Y
, &M
, &D
for date, &T
for time, &H
for host name, and &P
for port nuymber.
-1: Ask the user
0: Append
1: Overwrite
0: Off
1: Replay
2: Record
0: Off
1: no LF
2: CR
3: Rec
KiTTY
0: Force on
1: Force off
2: Auto
0: Force on
1: Force off
2: Auto
0: Control-H
1: Control-? (127)
0: CR
1: CR LF
0: Standard
1: rxvt
2: urxvt
3: xterm
4: FreeBSD1
5: FreeBSD2
0: ESC[n~
1: Linux
2: Xterm R6
3: VT400
4: VT100+
5: SCO
0: Normal
1: Application
NetHack if NetHackKeypad
is non-zero,
Application if ApplicationKeypad
is non-zero,
otherwise Normal
0: None (bell disabled)
1: Make default system alert sound
2: Visual bell (flash window)
3: Play a custom sound file
4: Beep using the PC speaker
0: Disabled
1: Flashing
2: Steady
0: None
1: Empty string
2: Window title
0: Change the number of rows and columns
1: Forbid resizing completely
2: Change font size only when maximised
3: Change the size of the font
0: Block
1: Underline
2: Vertical line
Courier%20New
0: Default
1: Antialiased
2: Non-Antialiased
3: ClearType
from 0 (visible) to 255 (transparent)
-1 to disable completely
%%f
: folder name
%%h
: hostname
%%p
: port number
%%P
: protocol name
%%s
: session name
%%u
: username
%%l
: forwarded local ports list
%%d
: forwarded dynamic ports list
WindowHasSysMenu
is non-zero
UTF-8
ISO-8859-1:1998 (Latin-1, West Europe)
ISO-8859-2:1999 (Latin-2, East Europe)
ISO-8859-3:1999 (Latin-3, South Europe)
ISO-8859-4:1998 (Latin-4, North Europe)
ISO-8859-5:1999 (Latin/Cyrillic)
ISO-8859-6:1999 (Latin/Arabic)
ISO-8859-7:1987 (Latin/Greek)
ISO-8859-8:1999 (Latin/Hebrew)
ISO-8859-9:1999 (Latin-5, Turkish)
ISO-8859-10:1998 (Latin-6, Nordic)
ISO-8859-11:2001 (Latin/Thai)
ISO-8859-13:1998 (Latin-7, Baltic)
ISO-8859-14:1998 (Latin-8, Celtic)
ISO-8859-15:1999 (Latin-9, "euro")
ISO-8859-16:2001 (Latin-10, Balkan)
KOI8-U
KOI8-R
HP-ROMAN8
VSCII
DEC-MCS
Win1250 (Central European)
Win1251 (Cyrillic)
Win1252 (Western)
Win1253 (Greek)"
Win1254 (Turkish)
Win1255 (Hebrew)
Win1256 (Arabic)
Win1257 (Baltic)
Win1258 (Vietnamese)
CP437
CP620 (Mazovia)
CP819
CP852
CP878
Use font encoding
(Codepages supported by Windows but not listed here, such as CP866 on many systems, can be specified)
0: Font has XWindows encoding
1: Use font in both ANSI and OEM modes
2: Use font in OEM mode only
3: Use Unicode line drawing code points
4: Poor man's line drawing (+, - and |)
0: Compromise (Middle extends, Right pastes)
1: xterm (Right extends, Middle pastes)
2: Windows (Middle extends, Right brings up menu)
0: Normal
1: Rectangular block
0: No action
1: Last selected text
2: System clipboard
0: No action
1: Last selected text
2: System clipboard
0: No action
1: Last selected text
2: System clipboard
T.B.D.
1: The font
2: The colour
3: Both
* Specify as R,G,B
in decimal.
0: Always
1: When hovered upon
2: Never
HyperlinkBrowserUseDefault
=0HyperlinkRegularExpressionUseDefault
=0Specify seconds/60 and seconds%60
0 to turn off
0: Auto
1: IPv4
2: IPv6
port:protocol
separated by comma. Valid protocols are tcp
and udp
. Special protocol s
is used to include pause between knocks.2001:tcp, 1:s, 2002:udp
0: Prompt
1: Use system username
xterm
38400,38400
List of Variable=Value
separated by comma. Percent encoding can be used for characters with special meanings.
0: None
1: SOCKS 4
2: SOCKS 5
3: HTTP
4: Telnet
5: Local
T.B.D.
0: No
1: Auto
2: Yes
0: Yes
1: No
2: Only until session starts
3: 2
0: 1 (INSECURE)
T.B.D.
T.B.D.
T.B.D.
T.B.D.
T.B.D.
T.B.D.
1: MIT-Magic-Cookie-1
2: XDM-Authorization-1
T.B.D.
0: scp
1: sftp
2: ftp
3: ftps
4: ftpes
5: http
6: https
COM1
0: BSD (commonplace)
1: RFC 1408 (unusual)
0: Active
1: Passive
0: None
1: ITS
2: WAITS