Indice
CUSTOMIZATION AND OPTIONS
Library Version
You may obtain the library version and other useful informations from these table members :
- Ansi.Version : Holds a string with the current library version
- Ansi.Build : Holds a string with the library build date
- Ansi.Escape : Holds the default escape code (27)
Switching ANSI On/Off
You can switch ANSI codes on and off with Term.AnsiMode :
Term.AnsiMode = False ; ANSI codes are switched off Term.AnsiMode = True ; ANSI codes are switched on (default)
Default Terminal Size
You can change the default terminal console size with Term.Size
Term.Size = { Rows = 25, Columns = 80 } ; This is the default setting
Customizing SPecial Styles
To change the default SPECIAL STYLES you have to modify the following tables:
- Term.NormalColor : Defines the NORMAL style
- Term.NoticeColor : Defines the NOTICE style
- Term.WarningColor : Defines the WARNING style
- Term.ErrorColor : Defines the ERROR style
- Term.AdviceColor : Defines the ADVICE style
- Term.QuoteColor : Defines the QUOTE style
- Term.PromptColor : Defines the PROMPT style
Each table listed above must have the following fields:
- Bg : Background ANSI color sequence
- Fg : Foreground ANSI color sequence
- Bold : True|False, it's a switch to enable bold style
- Italic : True|False, it's a switch to enable italic style
- Underline : True|False, it's a switch to enable underline style
Here is an example that overrides the standard NOTICE style:
Term.NoticeColor = { Bg = Ansi.Code.BgYellow, Fg = Ansi.Code.FgRed, Bold = True, Italic = False, Undeline = False }