Library globals

Class globals . screen . window

View source

screen.window
------------------------------------------------------------------------------
Class that manages a dialog with fixed number of lines, where you can push in
text at the bottom, which then (optionally) scrolls up after some time.

simple use:

var window = screen.window.new();
window.write("message in the middle of the screen");


advanced use:

var window = screen.window.new(nil, -100, 3, 10);
window.fg = [1, 1, 1, 1];    # choose white default color
window.align = "left";

window.write("first line");
window.write("second line (red)", 1, 0, 0);



arguments:
x ... x coordinate
y ... y coordinate
positive coords position relative to the left/lower corner,
negative coords from the right/upper corner, nil centers
maxlines ... max number of displayed lines; if more are pushed into the
screen, then the ones on top fall off
autoscroll ... seconds that each line should be shown; can be less if
a message falls off; if 0 then don't scroll at all

Functions

clear

close

new

show

write

Variables

id