Documentation
¶
Index ¶
- Variables
- func CommonRunePrefixForTest(candidates [][]rune) []rune
- func NewReadline(defaultPrompt string) (*readline.Instance, func(string) (string, error), error)
- func PrintWelcomeBanner(out io.Writer, cfg *config.Root, model, projHex, projRoot string, ...)
- func PrintWelcomeBannerSized(out io.Writer, termW int, cfg *config.Root, model, projHex, projRoot string, ...)
- func Prompt(rl *readline.Instance, prompt string) (string, error)
- func ReadInputRuneForTest(r *bufio.Reader) (rune, error)
- func Run(loop *Loop) error
- func ShellPrefixNormalizedForTest(buffer string, shellFirst bool) string
- func StdinIsTerminal() bool
- func TryPasteImageAtCursor(stderr io.Writer, saveImage func() (tag string, err error), line []rune, ...) ([]rune, int, bool)
- func VisualRowsWithGhostForTest(width int, prompt, line, ghost string) int
- type InputHistoryTest
- type Loop
- type MultilineEditorTest
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInputInterrupted = editor.ErrInputInterrupted
Functions ¶
func CommonRunePrefixForTest ¶ added in v2026.602.4
func NewReadline ¶
func PrintWelcomeBanner ¶
func PrintWelcomeBannerSized ¶ added in v2026.609.0
func ReadInputRuneForTest ¶ added in v2026.621.0
func ShellPrefixNormalizedForTest ¶ added in v2026.606.0
func StdinIsTerminal ¶
func StdinIsTerminal() bool
func TryPasteImageAtCursor ¶
func VisualRowsWithGhostForTest ¶ added in v2026.606.0
Types ¶
type InputHistoryTest ¶ added in v2026.602.4
type InputHistoryTest = editor.HistoryTest
func NewInputHistoryForTest ¶ added in v2026.602.4
func NewInputHistoryForTest() *InputHistoryTest
type Loop ¶
type Loop struct {
RL *readline.Instance
Out io.Writer
Ctx context.Context
InputInterrupt <-chan struct{}
PrepareStartupNotice func()
TakeStartupNotice func() bool
CompleteEnv replcomplete.ReplCompleteEnv
FinishSessionLoad func()
PromptPrimary func() string
PromptContinue func() string
HandleSlash func(line string) error
SlashDeps func() commands.Deps
OnUserMessage func(line string) error
TakeInputInitial func() string
ClipboardPasteForStdin func() (tag string, ok bool)
SaveClipboardImage func() (tag string, err error)
}
type MultilineEditorTest ¶ added in v2026.602.4
type MultilineEditorTest = editor.MultilineEditorTest
func NewMultilineEditorForTest ¶ added in v2026.602.4
func NewMultilineEditorForTest(loop *Loop, history *InputHistoryTest, lines []string, row, col, width int) *MultilineEditorTest
Source Files
¶
Click to show internal directories.
Click to hide internal directories.