Versions in this module Expand all Collapse all v0 v0.0.3 Jan 17, 2026 Changes in this version type Terminal + func (t *Terminal) RenderInline(buf *Buffer) string + func (t *Terminal) RenderInlineTo(buf *Buffer, w io.Writer) v0.0.2 Jan 17, 2026 Changes in this version type Buffer + func (b *Buffer) FillHorizontal(x, y, length int, c Cell) + func (b *Buffer) FillRect(x, y, width, height int, c Cell) + func (b *Buffer) FillVertical(x, y, length int, c Cell) + func (b *Buffer) SetClipped(x, y int, c Cell, clip ClipRect) + type ClipRect struct + H int + W int + X int + Y int + func (c ClipRect) Contains(x, y int) bool v0.0.1 Jan 14, 2026 Changes in this version + const AltScreenEnter + const AltScreenLeave + const BoldOff + const BoldOn + const ClearLine + const ClearScreen + const CursorHide + const CursorHome + const CursorShow + const DimOff + const DimOn + const ItalicOff + const ItalicOn + const Reset + const ReverseOff + const ReverseOn + const StrikeOff + const StrikeOn + const UnderlineOff + const UnderlineOn + func HideCursor() string + func MoveCursor(x, y int) string + func ShowCursor() string + type Buffer struct + Cells []Cell + Height int + Width int + func NewBuffer(width, height int) *Buffer + func (b *Buffer) Clone() *Buffer + func (b *Buffer) Diff(next *Buffer) []CellChange + func (b *Buffer) Fill(c Cell) + func (b *Buffer) Get(x, y int) Cell + func (b *Buffer) Set(x, y int, c Cell) + type Cell struct + BG Color + Bold bool + Char rune + Dim bool + FG Color + Italic bool + Reverse bool + Strike bool + Underline bool + func EmptyCell() Cell + func (c Cell) Equal(other Cell) bool + type CellChange struct + Cell Cell + X int + Y int + type Color struct + B uint8 + G uint8 + R uint8 + Set bool + func Default() Color + func RGB(r, g, b uint8) Color + func (c Color) BGCode() string + func (c Color) FGCode() string + func (c Color) IsSet() bool + func (c Color) WriteBGTo(w io.Writer) + func (c Color) WriteFGTo(w io.Writer) + type Terminal struct + func NewTerminal(width, height int) *Terminal + func (t *Terminal) Clear() string + func (t *Terminal) Render(next *Buffer) string + func (t *Terminal) RenderFull(buf *Buffer) string + func (t *Terminal) RenderFullTo(buf *Buffer, w io.Writer) + func (t *Terminal) RenderTo(next *Buffer, w io.Writer) + func (t *Terminal) Resize(width, height int)