truecolor

package module
v0.0.0-...-d5d9a79 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2016 License: MIT Imports: 5 Imported by: 0

README

wercker status

truecolor

Output with true color in temrinal. (require true color support temrinals)

INSTALL

$ go get github.com/soh335/truecolor

USAGE

tc := truecolor.New()
tc.Add(truecolor.NewBackgrond(color.RGBA{255, 0, 0, 255}))
tc.Add(truecolor.NewForeground(color.RGBA{100, 100, 100, 255}))
tc.Add(truecolor.Italic)
tc.Fprintln(os.Stdout, "truecolor")

LICENSE

  • MIT

SEA ALSO

TODO

  • document

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Code

type Code int
const (
	Reset Code = iota
	Bold
	Faint
	Italic
	Underline
	BlinkSlow
	BlinkRapid
	ImageNegative
	Conceal
	CrossedOut

	Foreground = 38
	Background = 48
)

func (Code) String

func (c Code) String() string

type Color

type Color struct {
	// contains filtered or unexported fields
}

func NewBackgrond

func NewBackgrond(color color.Color) *Color

func NewForeground

func NewForeground(color color.Color) *Color

func (*Color) String

func (c *Color) String() string

type Parameter

type Parameter interface {
	String() string
}

type TrueColor

type TrueColor struct {
	// contains filtered or unexported fields
}

func New

func New() *TrueColor

func (*TrueColor) Add

func (t *TrueColor) Add(p Parameter)

func (*TrueColor) Fprint

func (t *TrueColor) Fprint(w io.Writer, a ...interface{}) (n int, err error)

func (*TrueColor) Fprintf

func (t *TrueColor) Fprintf(w io.Writer, format string, a ...interface{}) (n int, err error)

func (*TrueColor) Fprintln

func (t *TrueColor) Fprintln(w io.Writer, a ...interface{}) (n int, err error)

func (*TrueColor) Reset

func (t *TrueColor) Reset()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL