gocui/attribute.go

33 lines
1.2 KiB
Go
Raw Permalink Normal View History

// Copyright 2014 The gocui Authors. All rights reserved.
2014-01-14 20:11:12 +01:00
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
2014-01-09 21:55:23 +01:00
package gocui
2014-01-09 21:58:31 +01:00
import "github.com/nsf/termbox-go"
2014-01-09 21:55:23 +01:00
// 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.
2014-01-09 21:55:23 +01:00
type Attribute termbox.Attribute
2014-01-19 17:03:52 +01:00
// Color attributes.
2014-01-09 21:55:23 +01: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-19 17:03:52 +01:00
// Text style attributes.
const (
AttrBold Attribute = Attribute(termbox.AttrBold)
AttrUnderline = Attribute(termbox.AttrUnderline)
AttrReverse = Attribute(termbox.AttrReverse)
)