diff options
author | Michael Muré <batolettre@gmail.com> | 2018-07-30 18:11:53 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-07-30 18:11:53 +0200 |
commit | bb9168f98a9dd50a7215652ab77a1c46615064cd (patch) | |
tree | 8ee16c1b5c6078cd48427c799375b78c95749bcd /vendor/github.com/jroimartin/gocui/attribute.go | |
parent | 29bb7364c8e873c72a386f4f6fa26248e5355cb2 (diff) | |
download | git-bug-bb9168f98a9dd50a7215652ab77a1c46615064cd.tar.gz |
vendor gocui
Diffstat (limited to 'vendor/github.com/jroimartin/gocui/attribute.go')
-rw-r--r-- | vendor/github.com/jroimartin/gocui/attribute.go | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/vendor/github.com/jroimartin/gocui/attribute.go b/vendor/github.com/jroimartin/gocui/attribute.go new file mode 100644 index 00000000..bad758a1 --- /dev/null +++ b/vendor/github.com/jroimartin/gocui/attribute.go @@ -0,0 +1,32 @@ +// Copyright 2014 The gocui Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package gocui + +import "github.com/nsf/termbox-go" + +// Attribute represents a terminal attribute, like color, font style, etc. They +// can be combined using bitwise OR (|). Note that it is not possible to +// combine multiple color attributes. +type Attribute termbox.Attribute + +// Color attributes. +const ( + ColorDefault Attribute = Attribute(termbox.ColorDefault) + ColorBlack = Attribute(termbox.ColorBlack) + ColorRed = Attribute(termbox.ColorRed) + ColorGreen = Attribute(termbox.ColorGreen) + ColorYellow = Attribute(termbox.ColorYellow) + ColorBlue = Attribute(termbox.ColorBlue) + ColorMagenta = Attribute(termbox.ColorMagenta) + ColorCyan = Attribute(termbox.ColorCyan) + ColorWhite = Attribute(termbox.ColorWhite) +) + +// Text style attributes. +const ( + AttrBold Attribute = Attribute(termbox.AttrBold) + AttrUnderline = Attribute(termbox.AttrUnderline) + AttrReverse = Attribute(termbox.AttrReverse) +) |