package ui

Import Path
	github.com/reeflective/console/internal/ui (on go.dev)

Dependency Relation
	imports 4 packages, and imported by one package

Involved Source Files prompt.go
Package-Level Type Names (only one)
/* sort by: | */
Prompt - A prompt is a set of functions that return the strings to print for each prompt type. The console will call these functions to retrieve the prompt strings to print. Each menu has its own prompt. // Primary is the main prompt. // Right is the prompt printed on the right side of the screen. // Secondary is the prompt used when the user is typing a multi-line command. // Tooltip is used to hint on the root command, replacing right prompts if not empty. // Transient is used if the console shell is configured to be transient. func NewPrompt(appName, menuName string, stdout *bytes.Buffer) *Prompt func BindPrompt(p *Prompt, shell *readline.Shell)
Package-Level Functions (total 2)
BindPrompt reassigns the prompt printing functions to the shell helpers.
NewPrompt requires the name of the application and the current menu, as well as the current menu output buffer to produce a new, default prompt.