Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Default = Color(termbox.ColorDefault) Black = Color(termbox.ColorBlack) Red = Color(termbox.ColorRed) Green = Color(termbox.ColorGreen) Yellow = Color(termbox.ColorYellow) Blue = Color(termbox.ColorBlue) Magenta = Color(termbox.ColorMagenta) Cyan = Color(termbox.ColorCyan) White = Color(termbox.ColorWhite) BrightBlack = Color(termbox.AttrBright | termbox.ColorBlack) BrightRed = Color(termbox.AttrBright | termbox.ColorRed) BrightGreen = Color(termbox.AttrBright | termbox.ColorGreen) BrightYellow = Color(termbox.AttrBright | termbox.ColorYellow) BrightBlue = Color(termbox.AttrBright | termbox.ColorBlue) BrightMagenta = Color(termbox.AttrBright | termbox.ColorMagenta) BrightCyan = Color(termbox.AttrBright | termbox.ColorCyan) BrightWhite = Color(termbox.AttrBright | termbox.ColorWhite) )
View Source
var DefaultConfig = &Config{
TabWidth: 2,
}
View Source
var DefaultStyles = StyleArray([]Style{ NewStyle(Green, chroma.String, chroma.StringAffix, chroma.StringBacktick, chroma.StringChar, chroma.StringDelimiter, chroma.StringDoc, chroma.StringDouble, chroma.StringEscape, chroma.StringHeredoc, chroma.StringInterpol, chroma.StringOther, chroma.StringRegex, chroma.StringSingle, chroma.StringSymbol, ), NewStyle(Red, chroma.Number, chroma.NumberBin, chroma.NumberFloat, chroma.NumberHex, chroma.NumberInteger, chroma.NumberIntegerLong, chroma.NumberOct, ), NewStyle(Blue, chroma.Keyword, chroma.KeywordConstant, chroma.KeywordDeclaration, chroma.KeywordNamespace, chroma.KeywordPseudo, chroma.KeywordReserved, chroma.KeywordType, chroma.Operator, chroma.OperatorWord, ), NewStyle(Cyan, chroma.NameFunction, chroma.NameFunctionMagic, ), NewStyle(BrightCyan, chroma.NameBuiltin, chroma.NameBuiltinPseudo, ), NewStyle(BrightBlack, chroma.Comment, chroma.CommentHashbang, chroma.CommentMultiline, chroma.CommentPreproc, chroma.CommentPreprocFile, chroma.CommentSingle, chroma.CommentSpecial, ), })
Functions ¶
Types ¶
type BufferPresenter ¶
type BufferService ¶
type BufferView ¶
type BufferView interface { Draw() Handle(event Event) }
type StyleArray ¶
type StyleArray []Style
Click to show internal directories.
Click to hide internal directories.