librarylib/Terminal.xtl

Terminal: the names of the colors and keys a program draws and reads with, a standard library built into xetal. Import it with an alias of your choice: "t:" u_se< "Terminal".

Colors are values of type Color (for []F_G and []B_G); keys are values of type Key, what []K_EY @ gives (a printing key carries its character: []K_CHAR). A misspelled name is an undefined name, and a Key where a Color is wanted a type error, when the program is checked.

source

Colors

ˡBLACK : Color

value · line 13

The color black, for []F_G (text) and []B_G (background).

ˡBLACK ← ⎕C̲OLOR 1

ˡRED : Color

value · line 16

The color red, for []F_G (text) and []B_G (background).

ˡRED ← ⎕C̲OLOR 2

ˡGREEN : Color

value · line 19

The color green, for []F_G (text) and []B_G (background).

ˡGREEN ← ⎕C̲OLOR 3

ˡYELLOW : Color

value · line 22

The color yellow, for []F_G (text) and []B_G (background).

ˡYELLOW ← ⎕C̲OLOR 4

ˡBLUE : Color

value · line 25

The color blue, for []F_G (text) and []B_G (background).

ˡBLUE ← ⎕C̲OLOR 5

ˡMAGENTA : Color

value · line 28

The color magenta, for []F_G (text) and []B_G (background).

ˡMAGENTA ← ⎕C̲OLOR 6

ˡCYAN : Color

value · line 31

The color cyan, for []F_G (text) and []B_G (background).

ˡCYAN ← ⎕C̲OLOR 7

ˡWHITE : Color

value · line 34

The color white, for []F_G (text) and []B_G (background).

ˡWHITE ← ⎕C̲OLOR 8

Keys

ˡUP : Key

value · line 39

The up arrow key. A Key, compared with what []K_EY @ gives.

ˡUP ← ⎕K̲NAMED 1

ˡDOWN : Key

value · line 42

The down arrow key. A Key, compared with what []K_EY @ gives.

ˡDOWN ← ⎕K̲NAMED 2

ˡLEFT : Key

value · line 45

The left arrow key. A Key, compared with what []K_EY @ gives.

ˡLEFT ← ⎕K̲NAMED 3

ˡRIGHT : Key

value · line 48

The right arrow key. A Key, compared with what []K_EY @ gives.

ˡRIGHT ← ⎕K̲NAMED 4

ˡENTER : Key

value · line 51

The Enter (Return) key. A Key, compared with what []K_EY @ gives.

ˡENTER ← ⎕K̲NAMED 5

ˡESCAPE : Key

value · line 54

The Escape key. A Key, compared with what []K_EY @ gives.

ˡESCAPE ← ⎕K̲NAMED 6

ˡBACKSPACE : Key

value · line 57

The Backspace key. A Key, compared with what []K_EY @ gives.

ˡBACKSPACE ← ⎕K̲NAMED 7

ˡTAB : Key

value · line 60

The Tab key. A Key, compared with what []K_EY @ gives.

ˡTAB ← ⎕K̲NAMED 8

ˡDELETE : Key

value · line 63

The Delete key. A Key, compared with what []K_EY @ gives.

ˡDELETE ← ⎕K̲NAMED 9

ˡHOME : Key

value · line 66

The Home key. A Key, compared with what []K_EY @ gives.

ˡHOME ← ⎕K̲NAMED 10

ˡEND : Key

value · line 69

The End key. A Key, compared with what []K_EY @ gives.

ˡEND ← ⎕K̲NAMED 11