Documentation ¶
Index ¶
Constants ¶
View Source
const ( NOTIFY_DEBUG = iota NOTIFY_INFO NOTIFY_WARN NOTIFY_ERROR NOTIFY_SCROLL )
Variables ¶
View Source
var ( // solarized dark SGR_COLOUR_BLACK = &Colour{7, 54, 66} SGR_COLOUR_RED = &Colour{220, 50, 47} SGR_COLOUR_GREEN = &Colour{133, 153, 0} SGR_COLOUR_YELLOW = &Colour{181, 137, 0} SGR_COLOUR_BLUE = &Colour{38, 139, 210} SGR_COLOUR_MAGENTA = &Colour{211, 54, 130} SGR_COLOUR_CYAN = &Colour{42, 161, 152} SGR_COLOUR_WHITE = &Colour{238, 232, 213} SGR_COLOUR_BLACK_BRIGHT = &Colour{0, 43, 54} SGR_COLOUR_RED_BRIGHT = &Colour{203, 75, 22} SGR_COLOUR_GREEN_BRIGHT = &Colour{88, 110, 117} SGR_COLOUR_YELLOW_BRIGHT = &Colour{101, 123, 131} SGR_COLOUR_BLUE_BRIGHT = &Colour{131, 148, 150} SGR_COLOUR_MAGENTA_BRIGHT = &Colour{108, 113, 196} SGR_COLOUR_CYAN_BRIGHT = &Colour{147, 161, 161} SGR_COLOUR_WHITE_BRIGHT = &Colour{253, 246, 227} )
View Source
var BlinkColour = map[bool]*Colour{ // contains filtered or unexported fields }
View Source
var SGR_COLOUR_256 = map[int32]*Colour{}/* 256 elements not displayed */
SGR_COLOUR_256 colours are a copy of xterm 256 colour values. source: https://vim.fandom.com/wiki/Xterm256_color_names_for_console_Vim
View Source
var SGR_DEFAULT = &Sgr{ Fg: SGR_COLOUR_WHITE, Bg: SGR_COLOUR_BLACK, }
Functions ¶
This section is empty.
Types ¶
type ApcSlice ¶
type ApcSlice struct {
// contains filtered or unexported fields
}
func NewApcSlice ¶
func (*ApcSlice) Parameters ¶
type Notification ¶
type Notification interface { SetMessage(string) Close() }
type NotificationType ¶
type NotificationType int
type Renderer ¶
type Renderer interface { Start(Term) FocusWindow() TermSize() *XY PrintCell(*Cell, *XY) error GetWindowTitle() string SetWindowTitle(string) Bell() TriggerRedraw() NewElement(elementType ElementID, size *XY, data []byte) Element DisplayNotification(NotificationType, string) DisplaySticky(NotificationType, string) Notification DisplayInputBox(string, string, func(string)) AddRenderFnToStack(func()) GetWindowMeta() any ResizeWindow(*XY) Close() }
type SgrFlag ¶
type SgrFlag uint32
Click to show internal directories.
Click to hide internal directories.