raw

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const REFRESH_RATE = time.Millisecond * 200

Variables

This section is empty.

Functions

func HideCursor

func HideCursor()

Types

type ARender

type ARender interface {
	Black(...string)
	Red(...string)
	Green(...string)
}

type ListenKeyAndAction

type ListenKeyAndAction struct {
	Key    rune
	Action func()
}

type Render

type Render struct {
	Black     func(...string)
	Red       func(...string)
	Green     func(...string)
	Yellow    func(...string)
	Blue      func(...string)
	Magenta   func(...string)
	Cyan      func(...string)
	White     func(...string)
	BgBlack   func(...string)
	BgRed     func(...string)
	BgGreen   func(...string)
	BgYellow  func(...string)
	BgBlue    func(...string)
	BgMagenta func(...string)
	BgCyan    func(...string)
	BgWhite   func(...string)
	Bold      func(...string)
	Underline func(...string)
	Reversed  func(...string)
	Reset     func()
}

type TUI

type TUI struct {
	Playlist *list.Playlist
	Notifs   *[]string
	Songs    *types.Activelist
	Setting  *types.Config
}

func NewUI

func NewUI(playlist *list.Playlist, notifs *[]string, setting *types.Config) *TUI

func (TUI) Display

func (tui TUI) Display()

func (TUI) DisplayStats

func (tui TUI) DisplayStats(playedList []string, completedPlaylist int)

func (TUI) HandleInterrupt

func (ui TUI) HandleInterrupt(playedList []string, completedPlaylist int)

func (TUI) ListenForKey

func (ui TUI) ListenForKey(listenKeys []ListenKeyAndAction)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳