termgui

package
v0.0.0-...-deee935 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package termgui implements a text-mode client over termui and drivers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoadMenu

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

LoadMenu implements a menu to select existing saves.

func (*LoadMenu) Draw

func (m *LoadMenu) Draw(s termui.TerminalDriver)

Draw implements the termui.Mode interface.

func (*LoadMenu) HandleEvent

func (m *LoadMenu) HandleEvent(s termui.TerminalDriver, e any) error

HandleEvent implements the termui.Mode interface.

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

MainMenu implements the main program menu.

func NewMainMenu

func NewMainMenu(s termui.TerminalDriver) *MainMenu

NewMainMenu returns a new MainMenu object.

func (m *MainMenu) Draw(s termui.TerminalDriver)

Draw implements the termui.Mode interface.

func (m *MainMenu) HandleEvent(s termui.TerminalDriver, e any) error

HandleEvent implements the termui.Mode interface.

Jump to

Keyboard shortcuts

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