module
TermBuf::Drawing
Overview
The drawing surface, shared by the terminal and by a batch being built.
The two differ only in what they do with a command: one sends it, the other collects it. Everything else about the API is the same, so it lives here rather than being written twice and drifting apart.
Direct including types
Defined in:
termbuf/terminal/command.crInstance Method Summary
-
#clear(style : Style = Style::DEFAULT) : Nil
Blanks the whole screen.
-
#fill(rect : Rect, char : Char = ' ', style : Style = Style::DEFAULT) : Nil
Sets every cell of rect to char.
-
#issue(command : Command) : Nil
Sends command on, or collects it.
-
#passthrough(bytes : Bytes) : Nil
Sends bytes to the terminal untouched, after the current frame.
-
#passthrough(text : String) : Nil
Sends bytes to the terminal untouched, after the current frame.
-
#scroll(rect : Rect, lines : Int32, style : Style = Style::DEFAULT) : Nil
Scrolls rect by lines rows, positive moving content up.
-
#scroll_region(region : Region, lines : Int32, style : Style = Style::DEFAULT) : Nil
Scrolls a region, keeping what leaves the top if it has scrollback.
-
#write(x : Int32, y : Int32, text : String, style : Style = Style::DEFAULT) : Nil
Writes text starting at (x, y), one grapheme cluster per cell, stopping at the right edge of the row.
-
#write_char(x : Int32, y : Int32, char : Char, style : Style = Style::DEFAULT) : Nil
Writes one character at (x, y).
Instance Method Detail
Sets every cell of rect to char.
Sends command on, or collects it. What a Terminal and a Batcher
disagree about, and all they disagree about.
Sends bytes to the terminal untouched, after the current frame.
Sends bytes to the terminal untouched, after the current frame.
Scrolls rect by lines rows, positive moving content up.
Scrolls a region, keeping what leaves the top if it has scrollback.
Writes text starting at (x, y), one grapheme cluster per cell, stopping at the right edge of the row.
Writes one character at (x, y).