Versions in this module Expand all Collapse all v0 v0.29.1 Mar 5, 2022 Changes in this version + const AttrClear + const AttrRegular + const AttrUndefined + const Blink + const Blink2 — darwin/amd64, js/wasm, linux/amd64 + const Bold + const Dim + const Italic + const Reverse + const Underline + var ColBorder ColorPair + var ColCurrent ColorPair + var ColCurrentCursor ColorPair + var ColCurrentCursorEmpty ColorPair + var ColCurrentMatch ColorPair + var ColCurrentSelected ColorPair + var ColCurrentSelectedEmpty ColorPair + var ColCursor ColorPair + var ColCursorEmpty ColorPair + var ColDisabled ColorPair + var ColHeader ColorPair + var ColInfo ColorPair + var ColInput ColorPair + var ColMatch ColorPair + var ColNormal ColorPair + var ColPreview ColorPair + var ColPreviewBorder ColorPair + var ColPrompt ColorPair + var ColSelected ColorPair + var ColSpinner ColorPair + var Dark256 *ColorTheme + var Default16 *ColorTheme + var Light256 *ColorTheme + func HasFullscreenRenderer() bool + func IsLightRendererSupported() bool + func TtyIn() *os.File + type Attr int32 — darwin/amd64, js/wasm, linux/amd64 + func (a Attr) Merge(b Attr) Attr + type Attr tcell.Style — windows/amd64 + type BorderCharacter int + type BorderShape int + const BorderBottom + const BorderHorizontal + const BorderLeft + const BorderNone + const BorderRight + const BorderRounded + const BorderSharp + const BorderTop + const BorderVertical + type BorderStyle struct + func MakeBorderStyle(shape BorderShape, unicode bool) BorderStyle + func MakeTransparentBorder() BorderStyle + type Color int32 + func HexToColor(rrggbb string) Color + func (c Color) IsDefault() bool + func (c Color) Style() tcell.Color + type ColorAttr struct + Attr Attr + Color Color + func NewColorAttr() ColorAttr + type ColorPair struct + func NewColorPair(fg Color, bg Color, attr Attr) ColorPair + func (p ColorPair) Attr() Attr + func (p ColorPair) Bg() Color + func (p ColorPair) Fg() Color + func (p ColorPair) HasBg() bool + func (p ColorPair) Merge(other ColorPair) ColorPair + func (p ColorPair) MergeAttr(other ColorPair) ColorPair + func (p ColorPair) MergeNonDefault(other ColorPair) ColorPair + func (p ColorPair) WithAttr(attr Attr) ColorPair + type ColorTheme struct + Bg ColorAttr + Border ColorAttr + Colored bool + Current ColorAttr + CurrentMatch ColorAttr + Cursor ColorAttr + DarkBg ColorAttr + Disabled ColorAttr + Fg ColorAttr + Gutter ColorAttr + Header ColorAttr + Info ColorAttr + Input ColorAttr + Match ColorAttr + PreviewBg ColorAttr + PreviewFg ColorAttr + Prompt ColorAttr + Selected ColorAttr + Spinner ColorAttr + func EmptyTheme() *ColorTheme + func NoColorTheme() *ColorTheme + type Event struct + Char rune + MouseEvent *MouseEvent + Type EventType + func AltKey(r rune) Event + func CtrlAltKey(r rune) Event + func Key(r rune) Event + func (e Event) Comparable() Event + type EventType int + const Alt + const AltBS + const AltDown + const AltLeft + const AltRight + const AltSDown + const AltSLeft + const AltSRight + const AltSUp + const AltUp + const BSpace + const BTab + const BackwardEOF + const Change + const CtrlA + const CtrlAlt + const CtrlB + const CtrlBackSlash + const CtrlC + const CtrlCaret + const CtrlD + const CtrlE + const CtrlF + const CtrlG + const CtrlH + const CtrlJ + const CtrlK + const CtrlL + const CtrlM + const CtrlN + const CtrlO + const CtrlP + const CtrlQ + const CtrlR + const CtrlRightBracket + const CtrlS + const CtrlSlash + const CtrlSpace + const CtrlT + const CtrlU + const CtrlV + const CtrlW + const CtrlX + const CtrlY + const CtrlZ + const Del + const DoubleClick + const Down + const ESC + const End + const F1 + const F10 + const F11 + const F12 + const F2 + const F3 + const F4 + const F5 + const F6 + const F7 + const F8 + const F9 + const Home + const Insert + const Invalid + const Left + const LeftClick + const Mouse + const PgDn + const PgUp + const Resize + const Right + const RightClick + const Rune + const SDown + const SLeft + const SRight + const SUp + const Tab + const Up + func (t EventType) AsEvent() Event + func (t EventType) Byte() byte + func (t EventType) Int() int + type FillReturn int + const FillContinue + const FillNextLine + const FillSuspend + type FullscreenRenderer struct + func (r *FullscreenRenderer) Clear() + func (r *FullscreenRenderer) Close() + func (r *FullscreenRenderer) GetChar() Event + func (r *FullscreenRenderer) Init() + func (r *FullscreenRenderer) MaxX() int + func (r *FullscreenRenderer) MaxY() int + func (r *FullscreenRenderer) NewWindow(top int, left int, width int, height int, preview bool, ...) Window + func (r *FullscreenRenderer) Pause(bool) + func (r *FullscreenRenderer) Pause(clear bool) + func (r *FullscreenRenderer) Refresh() + func (r *FullscreenRenderer) RefreshWindows(windows []Window) + func (r *FullscreenRenderer) Resume(bool, bool) + func (r *FullscreenRenderer) Resume(clear bool, sigcont bool) + type LightRenderer struct + func (r *LightRenderer) Clear() + func (r *LightRenderer) Close() + func (r *LightRenderer) GetChar() Event + func (r *LightRenderer) Init() + func (r *LightRenderer) MaxX() int + func (r *LightRenderer) MaxY() int + func (r *LightRenderer) NewWindow(top int, left int, width int, height int, preview bool, ...) Window + func (r *LightRenderer) Pause(clear bool) + func (r *LightRenderer) Refresh() + func (r *LightRenderer) RefreshWindows(windows []Window) + func (r *LightRenderer) Resume(clear bool, sigcont bool) + type LightWindow struct + func (w *LightWindow) CFill(fg Color, bg Color, attr Attr, text string) FillReturn + func (w *LightWindow) CPrint(pair ColorPair, text string) + func (w *LightWindow) Close() + func (w *LightWindow) Enclose(y int, x int) bool + func (w *LightWindow) Erase() + func (w *LightWindow) Fill(text string) FillReturn + func (w *LightWindow) FinishFill() + func (w *LightWindow) Height() int + func (w *LightWindow) Left() int + func (w *LightWindow) Move(y int, x int) + func (w *LightWindow) MoveAndClear(y int, x int) + func (w *LightWindow) Print(text string) + func (w *LightWindow) Refresh() + func (w *LightWindow) Top() int + func (w *LightWindow) Width() int + func (w *LightWindow) X() int + func (w *LightWindow) Y() int + type MouseEvent struct + Double bool + Down bool + Left bool + Mod bool + S int + X int + Y int + type Renderer interface + Clear func() + Close func() + GetChar func() Event + Init func() + MaxX func() int + MaxY func() int + NewWindow func(top int, left int, width int, height int, preview bool, ...) Window + Pause func(clear bool) + Refresh func() + RefreshWindows func(windows []Window) + Resume func(clear bool, sigcont bool) + func NewFullscreenRenderer(theme *ColorTheme, forceBlack bool, mouse bool) Renderer + func NewLightRenderer(theme *ColorTheme, forceBlack bool, mouse bool, tabstop int, clearOnExit bool, ...) Renderer + type TcellWindow struct — windows/amd64 + func (w *TcellWindow) CFill(fg Color, bg Color, a Attr, str string) FillReturn + func (w *TcellWindow) CPrint(pair ColorPair, text string) + func (w *TcellWindow) Close() + func (w *TcellWindow) Enclose(y int, x int) bool + func (w *TcellWindow) Erase() + func (w *TcellWindow) Fill(str string) FillReturn + func (w *TcellWindow) FinishFill() + func (w *TcellWindow) Height() int + func (w *TcellWindow) Left() int + func (w *TcellWindow) Move(y int, x int) + func (w *TcellWindow) MoveAndClear(y int, x int) + func (w *TcellWindow) Print(text string) + func (w *TcellWindow) Refresh() + func (w *TcellWindow) Top() int + func (w *TcellWindow) Width() int + func (w *TcellWindow) X() int + func (w *TcellWindow) Y() int + type Window interface + CFill func(fg Color, bg Color, attr Attr, text string) FillReturn + CPrint func(color ColorPair, text string) + Close func() + Enclose func(y int, x int) bool + Erase func() + Fill func(text string) FillReturn + FinishFill func() + Height func() int + Left func() int + Move func(y int, x int) + MoveAndClear func(y int, x int) + Print func(text string) + Refresh func() + Top func() int + Width func() int + X func() int + Y func() int