ui

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NavUp navDir = iota
	NavDown
	NavLeft
	NavRight
)

Variables

Functions

func Confirm added in v0.0.2

func Confirm(text string) (bool, error)

Confirm shows basic popup confirmation Yes or No return false if user select no

func Debug added in v0.0.4

func Debug(i ...interface{})

func GetSelectedHost

func GetSelectedHost(hosts []string) string

GetSelectedHost will prompt user an table UI, and let the user select node list by typing or moving with an arrow

func NewForwarding added in v0.0.3

func NewForwarding(list []*config.ForwardingNode)

func NewLoginUser added in v0.0.2

func NewLoginUser(listUser []string) (*loginUser, error)

NewLoginUser create a new login user UI

Types

type ArrowNav

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

func NewArrowNav

func NewArrowNav(g *gocui.Gui) *ArrowNav

Jump to

Keyboard shortcuts

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