class

Termbox::Window

Inherits Termbox::Container < Termbox::Element < Reference < Object

Constructors

Instance methods

<<(el : Element)

Alias put (append operator)

Source
clear

Clear terminal window

Source
clear_cell(position : Position) : Void

Clear a single cell

Source
cursor(position : Position) : Void

Move cursor position

Source
finalize

If the window [singleton] is GC'd, then shut down Termbox

Source
height

Get height of termbox

Source
hide_cursor
Source
peek(timeout : Int32)
Source
poll
Source
put(el : Element)
Source
put_raw(position : Position, char : Char, foreground, background) : Void

Put a decomposed cell, bypassing @elements store

Source
put_raw(position : Position, char : Char)

Put a decomposed cell, bypassing @elements store, using default colors

Source
put_raw(cell : Cell) : Void

Put a cell, bypassing @elements store

Source
render

Render all children (recursively) as cells, give them to termbox, present them

Source
render_raw
Source
set_input_mode(mode : Int32) : Int32

Set input mode

Source
set_output_mode(mode : Int32) : Int32

Set output mode

Source
set_primary_colors(foreground : Int32, background : Int32) : Void

Set primary colors

Source
shutdown
Source
width

Get width of termbox

Source
write_string(pivot : Position, string : String, foreground : Int32, background : Int32)

Write a string horizontal starting at pivot

Source
write_string(pivot : Position, string : String)

Write a string horizontal starting at pivot

Source