Availability:built-in
tty_size(-Rows,
-Columns)Determine the size of the terminal. This predicate is provided for POSIX
terminals, Windows console and the swipl-win Prolog consoles.
Portable code should wrap this into catch/3
and use some default in case the console window size cannot be
determined.
- Extended in 9.3.25 (👉9aca937) Windows: tty_size/2 to also work on Windows consoles.