Term
Table of contents
Term
To make use of the Term module an import is required.
import Term;
Term.isatty(Number) -> Boolean
Returns a boolean indicating whether the file descriptor passed is attached to a tty.
Term.isatty(0);
Term.getSize() -> Number
Returns the number of rows, columns, horizontal and vertical pixels of the attached terminal.
Term.getSize();
print(Term.getSize());
// {"rows": 13, "columns": 145, "horizontal_pixels": 145, "vertical_pixels": 145}