Terminal Settings

Property Name Description
* Display settings
CursorType0 for block cursor, 1 for underline cursor.
CursorVisible0 for invisible, 1 for visible.
DarkScreen0 for light screen, 1 for dark screen
CursorBlink0 for not blink, 1 for blink
LineDraw0 for using line draw characters in font, 1 for drawing the line by KoalaTerm
FontNameName of the display font
FontSizePoint size of the display font
FontBold0 for non-bold, 1 for bold display font
FontName132Name of the display font (for 132 columns)
FontSize132Point size of the display font (for 132 columns)
FontBold1320 for non-bold, 1 for bold display font (for 132 columns)
FontUse800: use differnt font for 132 columns; 1: use same font
* Printing settings
FFNeeded0 for no FF, 1 for FF appended to each print job
Redirect0 for using host's printing control, 1 for using Windows printing control
DriverNameDriver name of the printer
PrinterNameName of the printer
DefaultPrinter0 for using specified printer, 1 for using default printer
PrintFontNameName of printing font
PrintFontSizePointer size of printing font
PrintFontBold0 for non-bold, 1 for bold printing font
* Terminal settings
Interpret0 for displaying the control sequeces, 1 for interpreting them
AutoWrap0 for no autowrap, 1 for autowrap
8BitChars0 for 7 bits control characters, 1 for 8 bits
TermIDTerminal ID. 0-5 for VT420, VT320, VT220, VT102, VT101,VT100 respectively.
AnswerBackAnswer back string for VT terminal
HideABMIf 1, KoalaTerm will hide the answer back in KoalaTerm Settings
ColumnsNumber of columns in a terminal line
LinesNumber of lines in a terminal page
PagesTotal numbe of pages for terminal buffer
SaveLinesMaximum number of saved history lines
* Tab settings
TabListAn array with 132 elements. Each element represents a flag of tab stop at a column. If the flag is 1, the column is a tab stop.
* Keyboard settings
NewLine0 for no newline, 1 for new line. In new line mode, the return key will generate both <CR> and <LF> characters.
NumericKeypadKeypad mode: 0 for application mode, 1 for numeric mode
CusorKeysCursor keys mode: 0 for application mode, 1 for normal mode
MarginBell0 for margin bell disabled, 1 for enabled
WarningBell0 to disable and 1 to enable
BackArrowIf 0, send <Backspace> code for backspace key, if 1, send <Delete> code instead
NumLockIf 1, use NumLock key to change keypad mode, if 0, use NumLock key as PF1
* Communication settings
HostNameName of the connected host
ProxyName of the telnet proxy
HostType0 for telnet, 1 for comm port, 2 for local echo, 3 for modem.
PortPort number. Telnet: telnet port; comm: 0 for com1, 1 for com2...; modem: ID of modem.
SpeedComm port: baud rate. Telnet: proxy port number
Parity0: No Parity 1: Even 2: Odd 3: Mark 4: Space
StopBits0: 1 bit 1: 1.5 bits 2: 2 bits
DataLength0: 6 bits 1: 7 bits 2 : 8 bits
LocalEcho0: Local echo off. 1: Local echo on
Local0: Online. 1: Local
FlowControl0: No flow control 1: Xon/Xoff 2: Hardware flow control
* Character set settings
* charset codes:0: ASCII
1: DEC supplement graphic
2: DEC special graphic
3: DEC technical
4: ISO Latin 1
5: ISO Latin 2
6: ISO Latin 3
7: ISO Latin 4
8: ISO Cyrillic
9: ISO Greek
10: MS DOS
11: MS 866
12: KOI8r
13: ISO Hebrew
14: ISO Latin 5
15: ISO Arabic
UPSSUser preferred supplemental charset
PrimarySetPrimary supplemental charset
SecondarySetSecondary supplemental charset
NRCNational replacement charset. See the following code table:
* NRC charset codes:0: USASCII
1: ISO UK
2: DEC Dutch
3: DEC Finnish
4: ISO French
5: DEC Frech Canadian
6: ISO German
7: ISO Italian
8: DEC Norweigian Danish
9: ISO Norweigian Danish
10: DEC Portuguese
11: ISO Spanish
12: DEC Swedish
13: DEC Swiss
* Color settings
PaletteArray of 64 integers for 16 colors. Each color uses 4 integers: R, G, B and flag.
BackColorBackground color for color mapping. Array of 16 integers for 16 possible combination of attributes. Each combination uses a color index 0 -15.
ForeColorForeground color for color mapping. Array of 16 integers for 16 possible combination of attributes. Each combination uses a color index 0-15.
MappedMapped flag for color mapping. Array of 16 integers for 16 possible combination of attributes. 1 for mapped, 0 for not mapped.
* General settings
Maximize1 for maximize terminal window when created
CopySpace1 for copying spaces when copied to clipboard
AutoClose1 for automatically closing terminal window when disconnected
AutoExit1 for automatically exit KoalaTerm when a window closed
History1 for display scroll history buffer
FitFont1 for automatically change font to fit in window
LoginScript1 for automatically executing login script after connected
UserIDUser ID for login script
PasswordPassword for login script
ScriptThe login script
CaptureDebug1 for capturing debug information
AutoCopy1 for automatically copy to clipboard after text selected
TitleThe session title to be display on title bar of main window
HostScript
 
1 for allowing host to access protected script functions
Note: this property cannot be altered by script.
* Button settings
ButtonCaptionArray for captions of 32 buttons.
ButtonStringArray for strings of 32 buttons.
ButtonActionArray for action types of 32 buttons. 0: Send sequence. 1: Execute script. 2: Run script file

Here are some examples showing how to change terminal settings:

1. Suppose you want to define a button from the host side, let’s say, define the second button as sending sequence "exit<CR>", you can send the following sequence from the host:

<ESC>P$s term.ButtonCaption[1] = "Exit"; term.ButtonString[1] = "exit<CR>"; term.ButtonAction[1] = 0; <ESC>\

2. Suppose you want to use a larger font:

fontsize = term.FontSize; // get current font size
if (fontsize < 32) // maximum size
    fontsize = fontsize + 1;
term.FontSize = fontsize; // change font size. The screen will be refreshed immediately