ui

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DrawBox added in v0.2.0

func DrawBox(s tcell.Screen, x1 int, y1 int, x2 int, y2 int, size Dimension, style PositionStyle, text string, isBold bool)

generic function to draw box

func DrawText added in v0.2.0

func DrawText(s tcell.Screen, x1 int, y1 int, x2 int, y2 int, style tcell.Style, text string)

func Greet

func Greet()

Types

type Dimension added in v0.2.0

type Dimension struct {
	X int
	Y int
}

type PositionStyle

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

func ColorLetter

func ColorLetter(wordle string, col int, letter string) (PositionStyle, guess.LetterPosition)

color letter

func GetLetterStyles

func GetLetterStyles(posType guess.LetterPosition) PositionStyle

Jump to

Keyboard shortcuts

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