struct

TermBuf::ScreenSize

Inherits Struct < Value < Object

Stability: stable — changes only in a major release.

How many cells the terminal is showing.

Constants

DEFAULT = new(80, 24)

What to assume when nothing can be established. Every terminal is at least this big, and guessing larger paints off the edge of the screen.

Constructors

new(columns : Int32, rows : Int32)

A screen columns cells across and rows down. Neither may be zero or negative: a terminal that size cannot be drawn on.

Source

Instance methods

columns

Cells across.

Source
rows

Cells down.

Source
to_s(io : IO) : Nil

Same as #inspect(io).

Source