File: 11_terminal.md

package info (click to toggle)
ruby-ansi 1.5.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 404 kB
  • sloc: ruby: 1,880; makefile: 5
file content (8 lines) | stat: -rw-r--r-- 169 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
# ANSI::Terminal

We should be ables to get the terminal width via the `terminal_width` method.

    width = ANSI::Terminal.terminal_width

    Fixnum.assert === width