Help us shape the future of Go! Take the 2026 Go Developer Survey

tui

package
v0.0.0-...-0de60d9 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SelectedPixelBorderColor  = lipgloss.Color("4")
	HighlightPixelColor       = lipgloss.Color("5")
	PixelOnColor              = lipgloss.Color("15")
	PixelOnWarningColor       = lipgloss.Color("1")
	PixelOffColor             = lipgloss.Color("0")
	SelectedCharBorderColor   = lipgloss.Color("7")
	UnSelectedCharBorderColor = lipgloss.Color("8")
	SelectedPixelBorder       = lipgloss.ThickBorder()
	PixelOnStyle              = lipgloss.NewStyle().
								Foreground(SelectedPixelBorderColor).
								Background(PixelOnColor)
	PixelOnWarningStyle = lipgloss.NewStyle().
						Foreground(SelectedPixelBorderColor).
						Background(PixelOnWarningColor)
	PixelOffStyle = lipgloss.NewStyle().
					Foreground(SelectedPixelBorderColor).
					Background(PixelOffColor)
	UnselectedCharStyle = lipgloss.NewStyle().
						BorderStyle(lipgloss.InnerHalfBlockBorder()).
						BorderForeground(UnSelectedCharBorderColor)
	SelectedCharStyle = lipgloss.NewStyle().
						BorderStyle(lipgloss.InnerHalfBlockBorder()).
						BorderForeground(SelectedCharBorderColor)
)

Functions

This section is empty.

Types

type FontViewer

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

func NewFontViewer

func NewFontViewer(f editor.Font) FontViewer

func (FontViewer) Init

func (m FontViewer) Init() tea.Cmd

func (FontViewer) Name

func (m FontViewer) Name() string

func (FontViewer) Update

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

func (FontViewer) View

func (m FontViewer) View() string

func (FontViewer) ViewFollowChar

func (m FontViewer) ViewFollowChar() string

func (FontViewer) ViewStatic

func (m FontViewer) ViewStatic() string

type KeyMap

type KeyMap struct {
	Up,
	Down,
	Left,
	Right,
	CharUp,
	CharDown,
	CharLeft,
	CharRight,
	TogglePixel,
	Quit key.Binding
}

func DefaultKeyMap

func DefaultKeyMap() KeyMap

type Vector

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

Jump to

Keyboard shortcuts

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