class TermBuf::Batcher

Overview

Collects drawing commands so a whole frame reaches the owning fibre as one channel operation.

Included Modules

Defined in:

termbuf/terminal/command.cr

Instance Method Summary

Instance methods inherited from module TermBuf::Drawing

clear(style : Style = Style::DEFAULT) : Nil clear, fill(rect : Rect, char : Char = ' ', style : Style = Style::DEFAULT) : Nil fill, issue(command : Command) : Nil issue, passthrough(bytes : Bytes) : Nil
passthrough(text : String) : Nil
passthrough
, scroll(rect : Rect, lines : Int32, style : Style = Style::DEFAULT) : Nil scroll, scroll_region(region : Region, lines : Int32, style : Style = Style::DEFAULT) : Nil scroll_region, write(x : Int32, y : Int32, text : String, style : Style = Style::DEFAULT) : Nil write, write_char(x : Int32, y : Int32, char : Char, style : Style = Style::DEFAULT) : Nil write_char

Instance Method Detail

What has been collected so far, in the order it was drawn.


[View source]
def empty? : Bool #

Whether anything has been drawn.


[View source]
def issue(command : Command) : Nil #

Collects command rather than sending it.


[View source]