Versions in this module Expand all Collapse all v1 v1.1.1 Apr 21, 2021 v1.1.0 Mar 10, 2021 Changes in this version + func AttributeToRGB(attr Attribute) (uint8, uint8, uint8) + func SetBg(x, y int, bg Attribute) + func SetChar(x, y int, ch rune) + func SetFg(x, y int, fg Attribute) type Attribute + const AttrBlink + const AttrCursive + const AttrDim + const AttrHidden + const ColorDarkGray + const ColorLightBlue + const ColorLightCyan + const ColorLightGray + const ColorLightGreen + const ColorLightMagenta + const ColorLightRed + const ColorLightYellow + func RGBToAttribute(r uint8, g uint8, b uint8) Attribute type Cell + func GetCell(x, y int) Cell type OutputMode + const OutputRGB v1.0.0 Apr 18, 2020 Changes in this version + const SM_CXMIN — windows/amd64 + const SM_CYMIN — windows/amd64 + var IsInit bool = false + func Clear(fg, bg Attribute) error + func Close() + func Flush() error + func HideCursor() + func Init() error + func Interrupt() + func SetCell(x, y int, ch rune, fg, bg Attribute) + func SetCursor(x, y int) + func Size() (int, int) — windows/amd64 + func Size() (width int, height int) — darwin/amd64, js/wasm, linux/amd64 + func Sync() error + type Attribute uint16 + const AttrBold + const AttrReverse + const AttrUnderline + const ColorBlack + const ColorBlue + const ColorCyan + const ColorDefault + const ColorGreen + const ColorMagenta + const ColorRed + const ColorWhite + const ColorYellow + type Cell struct + Bg Attribute + Ch rune + Fg Attribute + func CellBuffer() []Cell + type Event struct + Ch rune + Err error + Height int + Key Key + Mod Modifier + MouseX int + MouseY int + N int + Type EventType + Width int + func ParseEvent(data []byte) Event + func PollEvent() Event + func PollRawEvent(data []byte) Event + type EventType uint8 + const EventError + const EventInterrupt + const EventKey + const EventMouse + const EventNone + const EventRaw + const EventResize + type InputMode int + const InputAlt + const InputCurrent + const InputEsc + const InputMouse + func SetInputMode(mode InputMode) InputMode + type Key uint16 + const KeyArrowDown + const KeyArrowLeft + const KeyArrowRight + const KeyArrowUp + const KeyBackspace + const KeyBackspace2 + const KeyCtrl2 + const KeyCtrl3 + const KeyCtrl4 + const KeyCtrl5 + const KeyCtrl6 + const KeyCtrl7 + const KeyCtrl8 + const KeyCtrlA + const KeyCtrlB + const KeyCtrlBackslash + const KeyCtrlC + const KeyCtrlD + const KeyCtrlE + const KeyCtrlF + const KeyCtrlG + const KeyCtrlH + const KeyCtrlI + const KeyCtrlJ + const KeyCtrlK + const KeyCtrlL + const KeyCtrlLsqBracket + const KeyCtrlM + const KeyCtrlN + const KeyCtrlO + const KeyCtrlP + const KeyCtrlQ + const KeyCtrlR + const KeyCtrlRsqBracket + const KeyCtrlS + const KeyCtrlSlash + const KeyCtrlSpace + const KeyCtrlT + const KeyCtrlTilde + const KeyCtrlU + const KeyCtrlUnderscore + const KeyCtrlV + const KeyCtrlW + const KeyCtrlX + const KeyCtrlY + const KeyCtrlZ + const KeyDelete + const KeyEnd + const KeyEnter + const KeyEsc + const KeyF1 + const KeyF10 + const KeyF11 + const KeyF12 + const KeyF2 + const KeyF3 + const KeyF4 + const KeyF5 + const KeyF6 + const KeyF7 + const KeyF8 + const KeyF9 + const KeyHome + const KeyInsert + const KeyPgdn + const KeyPgup + const KeySpace + const KeyTab + const MouseLeft + const MouseMiddle + const MouseRelease + const MouseRight + const MouseWheelDown + const MouseWheelUp + type Modifier uint8 + const ModAlt + const ModMotion + type OutputMode int + const Output216 + const Output256 + const OutputCurrent + const OutputGrayscale + const OutputNormal + func SetOutputMode(mode OutputMode) OutputMode