tui

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 License: MIT Imports: 8 Imported by: 0

README

tui

Text user interface for golang.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear

func Clear()

Clear clears the screen.

func GetInt

func GetInt(prompt string) int

func GetMenu

func GetMenu(
	title string,
	text string,
	items ...string,
) string

func GetPassword

func GetPassword(prompt string) string

func GetString

func GetString(prompt string) string

String prompts a user for a string and returns the result.

func PrintBoxed

func PrintBoxed(s string, args ...interface{})

Prints a box around text followed by a newline.

func PrintHLine

func PrintHLine()

PrintHLine prints a line across the screen followed by a newline.

func PrintString

func PrintString(s string, args ...interface{})

Print a string to the terminal followed by a newline. No wrapping.

func PrintText

func PrintText(s string, args ...interface{})

func PrintTextWithPrefix

func PrintTextWithPrefix(prefix, s string, args ...interface{})

Format and wrap text, print to screen with given prefix on each wrapped line.

func Start

func Start()

func Stop

func Stop()

func WindowSize

func WindowSize() (w, h int)

Types

This section is empty.

Directories

Path Synopsis
example

Jump to

Keyboard shortcuts

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