Skip to content

TermSize

[Source]

Query the terminal dimensions via ioctl. Returns (cols, rows) or (80, 24) as a fallback if the query fails.

primitive val TermSize

Constructors

create

[Source]

new val create()
: TermSize val^

Returns


Public Functions

apply

[Source]

Return the current terminal size as (width, height).

fun box apply()
: (USize val , USize val)

Returns


eq

[Source]

fun box eq(
  that: TermSize val)
: Bool val

Parameters

Returns


ne

[Source]

fun box ne(
  that: TermSize val)
: Bool val

Parameters

Returns