MCPcopy Index your code
hub / github.com/cli/cli / tab

Function tab

internal/prompter/huh_prompter_test.go:57–59  ·  view source on GitHub ↗

Step helpers — each returns a single interactionStep. These send raw terminal escape sequences that bubbletea's input parser understands. Common ANSI escape codes: \t = Tab \x1b[Z = Shift+Tab (reverse tab) \r = Enter (carriage return) \x1b[A = Arrow Up \x1b[B = Arrow Down

()

Source from the content-addressed store, hash-verified

55// \x0b = Ctrl+K (kill to end of line)
56
57func tab() interactionStep {
58 return interactionStep{bytes: []byte("\t")}
59}
60
61func shiftTab() interactionStep {
62 return interactionStep{bytes: []byte("\x1b[Z")}

Calls

no outgoing calls

Tested by

no test coverage detected