2014-01-15 03:11:12 +08:00
|
|
|
// 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.
|
|
|
|
|
2014-01-10 04:55:23 +08:00
|
|
|
package gocui
|
|
|
|
|
2014-01-10 04:58:31 +08:00
|
|
|
import "github.com/nsf/termbox-go"
|
2014-01-10 04:55:23 +08:00
|
|
|
|
2014-01-20 00:03:52 +08:00
|
|
|
// Attributes can be combined using bitwise OR (|). Note that it is not
|
|
|
|
// possible to combine multiple color attributes.
|
2014-01-10 04:55:23 +08:00
|
|
|
type Attribute termbox.Attribute
|
|
|
|
|
2014-01-20 00:03:52 +08:00
|
|
|
// Color attributes.
|
2014-01-10 04:55:23 +08:00
|
|
|
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)
|
|
|
|
)
|
2014-01-20 00:03:52 +08:00
|
|
|
|
|
|
|
// Text style attributes.
|
|
|
|
const (
|
|
|
|
AttrBold Attribute = Attribute(termbox.AttrBold)
|
|
|
|
AttrUnderline = Attribute(termbox.AttrUnderline)
|
|
|
|
AttrReverse = Attribute(termbox.AttrReverse)
|
|
|
|
)
|