termbg

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RGB

type RGB struct {
	R uint16
	G uint16
	B uint16
}

RGB is a 16bit RGB color

func NewRGB

func NewRGB(timeout time.Duration) (RGB, error)

type Terminal

type Terminal uint
const (
	RxvtCompatible Terminal = iota
	Screen
	Tmux
	XtermCompatible
	Windows
	VSCode
)

func NewTerminal

func NewTerminal() (Terminal, error)

func (Terminal) String

func (t Terminal) String() string

type Theme

type Theme string
const (
	Light Theme = "Light"
	Dark  Theme = "Dark"
)

func NewTheme

func NewTheme(timeout time.Duration) (Theme, error)

Jump to

Keyboard shortcuts

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