cui

package
v0.0.0-...-31c2686 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Color = &color{
		Notice:      219,
		Action:      118,
		Black:       0,
		White:       15,
		Red:         160,
		Purple:      92,
		Logo:        75,
		Yellow:      11,
		Green:       119,
		Menu:        209,
		Timestamp:   247,
		Header:      57,
		QueryHeader: 11,
	}
)
View Source
var (
	LastUpdatedAt time.Time
)

Functions

func BodyView

func BodyView(g *gocui.Gui, x, y, maxX, maxY int) error

func CountryTitleView

func CountryTitleView(g *gocui.Gui, x, y, maxX, maxY int) error

func FooterView

func FooterView(g *gocui.Gui, x, y, maxX, maxY int) error

func HeaderView

func HeaderView(g *gocui.Gui, x, y, maxX, maxY int) error

func Layout

func Layout(g *gocui.Gui) error

func Random

func Random(min, max int) int

Random color number

func ShowBodyView

func ShowBodyView(g *gocui.Gui) error

func ShowCountryView

func ShowCountryView(g *gocui.Gui) error

func String

func String(c int, str string) string

String returns a color escape string

func StringFormat

func StringFormat(c int, str string, args []string) string

StringFormat returns a color escape string with extra options

func StringFormatBoth

func StringFormatBoth(fg, bg int, str string, args []string) string

StringFormatBoth fg and bg colors Thanks project komanda-cli

func StringRandom

func StringRandom(str string) string

StringRandom returns a random colored string

func UpdateView

func UpdateView(g *gocui.Gui, vn string, s string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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