Documentation ¶
Index ¶
- Constants
- Variables
- func CPrint(pair int, bold bool, text string)
- func Clear()
- func Close()
- func Endwin()
- func GetBytes() []byte
- func Init(theme *ColorTheme, black bool, mouse bool)
- func MaxX() int
- func MaxY() int
- func Move(y int, x int)
- func MoveAndClear(y int, x int)
- func PairFor(fg int, bg int) int
- func Print(text string)
- func Refresh()
- type ColorTheme
- type Event
- type MouseEvent
Constants ¶
View Source
const ( Rune = iota CtrlA CtrlB CtrlC CtrlD CtrlE CtrlF CtrlG CtrlH Tab CtrlJ CtrlK CtrlL CtrlM CtrlN CtrlO CtrlP CtrlQ CtrlR CtrlS CtrlT CtrlU CtrlV CtrlW CtrlX CtrlY CtrlZ ESC Invalid Mouse DoubleClick BTab BSpace Del PgUp PgDn Up Down Left Right Home End SLeft SRight F1 F2 F3 F4 AltBS AltA AltB AltC AltD AltE AltF AltZ = AltA + 'z' - 'a' )
Types of user action
View Source
const ( ColNormal = iota ColPrompt ColMatch ColCurrent ColCurrentMatch ColSpinner ColInfo ColCursor ColSelected ColHeader ColUser )
Pallete
Variables ¶
View Source
var ( Default16 *ColorTheme Dark256 *ColorTheme Light256 *ColorTheme FG int CurrentFG int BG int DarkBG int )
Functions ¶
func Init ¶
func Init(theme *ColorTheme, black bool, mouse bool)
func MoveAndClear ¶
Types ¶
type ColorTheme ¶
type Event ¶
type Event struct { Type int Char rune MouseEvent *MouseEvent }
Click to show internal directories.
Click to hide internal directories.