Overview

Previous Next

Ansi Library is mapped in two root tables Ansi and Term.

Ansi table is used for all ANSI escape codes and strictly ANSI escape codes related functions, Term table is used for a very basic terminal interface providing inout and output functions for the host console.


Ansi Root Table


Ansi.Version

Holds the library version string

Ansi.Build

Holds the library build date

Ansi.Escape

Default ANSI escape string

Ansi.Code

A table with the most common ANSI escape sequence strings



Ansi.GetDeleteLines()

Returns the escape sequence to delete <n> lines

Ansi.GetInsertBlankLines()

Returns the escape sequence to insert <n> lines

Ansi.GetClearCharacters()

Returns the escape sequence to clear <n> characters

Ansi.GetInsertCharacters()

Returns the escape sequence to insert <n> characters

Ansi.GetDeleteCharacters()

Returns the escape sequence to delete <n> characters

Ansi.GetCursorMove()

Returns the escape sequence to move the cursor to a given location

Ansi.GetCursorUp()

Returns the escape sequence to move the cursor <n> lines up

Ansi.GetCursorDown()

Returns the escape sequence to move the cursor <n> lines down

Ansi.GetCursorRight()

Returns the escape sequence to move the cursor <n> columns right

Ansi.GetCursorLeft()

Returns the escape sequence to move the cursor <n> columns left



Term.AnsiMode

True or False, used to switch ANSI on/off

Term.NormalColor

A table that defines the terminal normal messages colors

Term.NoticeColor

A table that defines the terminal notice messages colors

Term.WarningColor

A table that defines the terminal warning messages colors

Term.ErrorColor

A table that defines the terminal error messages colors

Term.AdviceColor

A table that defines the terminal advice messages colors

Term.QuoteColor

A table that defines the terminal quote messages colors

Term.PromptColor

A table that defines the terminal input messages colors

Term.Size

A table used to define the terminal grid size



Term.Input()

Read input from the keyboard

Term.Print()

Print messages to the terminal

Term.Line()

Draw character line

Term.CTLine()

Draw a line with center text

Term.TEST()

Test/Demo function


Created with the Personal Edition of HelpNDoc: Free help authoring environment