Help us shape the future of Go! Take the 2026 Go Developer Survey

panel

package
v0.19.12 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package panel is how a terminal asks the questions plugin's questions: one tab per question, choices and a line of your own, then a review, in the local dialog and the remote conversation view alike.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Draw

func Draw(request questions.Request, theme extensions.Theme, height func() int, invalidate func(), done func(questions.Result)) extensions.Component

Draw is New as the questions plugin's Panel.

Types

type Panel

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

Panel is shared by the local dialog and the remote conversation view.

func New

func New(request questions.Request, theme extensions.Theme, height func() int, invalidate func(), done func(questions.Result)) *Panel

func (*Panel) HandleInput

func (p *Panel) HandleInput(key tui.KeyEvent)

func (*Panel) HandleMouse

func (p *Panel) HandleMouse(event tui.MouseEvent) bool

func (*Panel) Render

func (p *Panel) Render(width int) []string

func (*Panel) SetFocused

func (p *Panel) SetFocused(f bool)

func (*Panel) WantsMouseMotion

func (p *Panel) WantsMouseMotion() bool

Jump to

Keyboard shortcuts

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