A session file contains resources (settings) for a particular host session. It is a convenient way to set multiple options at once without creating a huge command line. Except in b3270, a session file can include a hostname resource to specify a host to connect to at start-up.
By convention, a session file has the same suffix as the emulator that uses it. For example, an x3270 session file has the suffix
The syntax of a session file derives from X11 Resource Files.
Each line consists of a resource name, a colon, and a value. White space after the colon is not considered part of the value. A resource name must be fully-qualified. The easiest way to do this is to prefix it with an asterisk (
*). The name of the emulator and a dot (
.) can also be used to qualify the name. This allows the same resource file to be used with different kinds of emulators, using different values for each kind.
A comment line begins with an exclamation point (
Multiple lines can be joined by ending a line with a backslash (
\). The trailing backslash and newline character (or carriage return / line feed sequence) are then removed from the entry before processing.
Except at the end of a line, a backslash introduces an escape sequence.
- A newline character (U+000A)
- A tab character (U+0009)
- A carriage return character (U+000D)
- A backspace character (U+0008)
- A form feed character (U+000C)
- A backslash character (U+005C)
If a backslash is followed by any other character, the backslash will simply be removed.
Define the blankFill resource to true.
Define blankFill for wc3270 to true.
Same as above but with a comment.
! Set blank fill to true. wc3270.blankFill: true
! Definition of the 'mine' keymap x3270.keymap.mine: #override \ <Key>Prior: PF(7)\n\ <Key>Next: PF(8)
wc3270.traceDir: C:\\Users\\Bob\\Trace Files