Home  Contents

trm:write

Graphics Core4 Lua Commands

SYNOPSIS

trm:write(arg[, ...])

DESCRIPTION

If arg is a string, its contents are written to the terminal emulator.

If arg is a number, the number is interpreted as a codepoint and a single character is written to the terminal.

The data is written to an internal buffer that keeps a copy of the emulated text screen. Only changed data is painted onto the graphics bitmap, in order to get best performance.

If multiple values are given, they are written consecutively.

ERRORS

Raises an error if trm is not a terminal emulator handle.

SEE ALSO