ui

package
v0.0.0-...-a3fea46 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CurrentStyle = UnTypedStyle.
	Underline(true)
View Source
var ErrorStyle = lipgloss.
	NewStyle().
	Foreground(lipgloss.Color("#fff")).
	Background(lipgloss.Color("#f33"))
View Source
var TypedStyle = lipgloss.
	NewStyle().
	Foreground(lipgloss.Color("#fff"))
View Source
var UnTypedStyle = lipgloss.
	NewStyle().
	Foreground(lipgloss.Color("#555")).
	Faint(true)

Functions

This section is empty.

Types

type Ui

type Ui struct {
	Text     []rune
	Typed    []rune
	Start    time.Time
	Mismatch int
	Score    float64
	Progress progress.Model
}

func New

func New(text string) Ui

func (Ui) Init

func (Ui) Init() tea.Cmd

Init implements tea.Model

func (Ui) Update

func (m Ui) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update implements tea.Model

func (Ui) View

func (m Ui) View() string

View implements tea.Model

Jump to

Keyboard shortcuts

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