struct TermBuf::ScreenSize

Overview

How many cells the terminal is showing.

Defined in:

termbuf/caps/screen_size.cr

Constant Summary

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

Instance Method Summary

Constructor Detail

def self.new(columns : Int32, rows : Int32) #

[View source]

Instance Method Detail

def columns : Int32 #

Cells across.


[View source]
def rows : Int32 #

Cells down.


[View source]
def to_s(io : IO) : Nil #
Description copied from struct Struct

Same as #inspect(io).


[View source]