promptselect

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2025 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrepareTerminal

func PrepareTerminal() (*term.State, error)

func RestoreTerminal

func RestoreTerminal(oldTermState *term.State)

Types

type PromptSelect

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

func NewPrompt

func NewPrompt(entries []string, promptMessage string, showIndex bool) (*PromptSelect, error)

func (*PromptSelect) SpinPrompt

func (p *PromptSelect) SpinPrompt() (bool, int, error)

Jump to

Keyboard shortcuts

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