COORDINATES
When the 0,0 coordinate is in the upper left corner TinTin++ uses
a y,x / row,col notation, starting at 1,1. Subsequently -1,-1
will indicate the bottom right corner. This type of argument is
used by the #showme command.
When the 0,0 coordinate is in the bottom left corner tintin uses
a standard x,y notation. This type of argument is used by the
#map jump command.
The vast majority of tintin commands use y,x / row,col notation,
primarily because that is the notation used by the VT100 standard
used for terminal emulation.
Squares
A square argument takes 2 coordinates. The first coordinate defines
the upper left corner, the last coordinate defines the bottom
right corner. The upper left corner of the terminal is defined as
1,1 and the bottom right corner as -1,-1. This type of argument is
used by #draw, #button and #map offset.
Panes
A pane argument takes 4 size values, which are: top pane, bottom
pane, left pane, right pane. When a negative value is provided the
size is the maximum size, minus the value. This type of argument
is used by the #split command.
Ranges
A range argument takes 2 values known as the upper bound and lower
bound. The upper bound (first value) defines the start of the
range, the lower bound (second value) the end. The first index of
a range is defined as 1. When a negative value is provides the last
index is defined as -1. This type of argument is used by #buffer
and #variable.
Related: characters, colors, escape_codes, mathematics and pcre.
|