4.34 Terminal Control
All Application Manual Name SummaryHelp

  • Documentation
    • Reference manual
      • Built-in Predicates
        • Terminal Control
          • tty_get_capability/3
          • tty_goto/2
          • tty_put/2
          • tty_size/2
    • Packages
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.