Documentation
¶
Index ¶
Constants ¶
View Source
const CellAspectRatio = 2.0
CellAspectRatio compensates for the fact that terminal glyphs are taller than they are wide.
Variables ¶
This section is empty.
Functions ¶
func FitImageToBounds ¶
Types ¶
type GraphicsProtocol ¶
type GraphicsProtocol int
const ( GraphicsProtocolNone GraphicsProtocol = iota GraphicsProtocolInline )
func DetectGraphicsProtocol ¶
func DetectGraphicsProtocol(force string) GraphicsProtocol
type InlineImageRenderer ¶
type InlineImageRenderer struct {
// contains filtered or unexported fields
}
func NewInlineImageRenderer ¶
func NewInlineImageRenderer(proto GraphicsProtocol) *InlineImageRenderer
func (*InlineImageRenderer) Close ¶
func (r *InlineImageRenderer) Close()
func (*InlineImageRenderer) Init ¶
func (r *InlineImageRenderer) Init() error
type TCellRenderer ¶
type TCellRenderer struct {
// contains filtered or unexported fields
}
TCellRenderer draws frames using a simple dirty-rect strategy to avoid full clears every frame. This significantly reduces terminal I/O and helps eliminate periodic stutters.
func NewTCellRenderer ¶
func NewTCellRenderer(screen ui.Screen, perfStats *perf.Stats) *TCellRenderer
func (*TCellRenderer) Reset ¶
func (r *TCellRenderer) Reset()
Click to show internal directories.
Click to hide internal directories.