struct TUI::BufferCell

Overview

One character cell: the glyph itself plus the ANSI SGR escape sequence (#style) that should be emitted before it. Screen#flush diffs on the (char, style) pair to decide which cells actually changed since the last frame.

Defined in:

tui/core/buffer.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(char : String = " ", style : String = "") #

[View source]

Instance Method Detail

def char : String #

def clone #

[View source]
def copy_with(char _char = @char, style _style = @style) #

[View source]
def style : String #