MCPcopy Create free account
hub / github.com/charmbracelet/bubbletea / executeQuery

Method executeQuery

tea.go:1339–1344  ·  view source on GitHub ↗

executeQuery writes a terminal query to the program output. Queries expect a reply on p.input, so when input is disabled the query is skipped: the program cannot read the response, and the terminal's reply would leak into the shell once the program exits (#1590). This covers every query that expect

(seq string)

Source from the content-addressed store, hash-verified

1337// position reports, clipboard reads, and terminal version and termcap
1338// queries.
1339func (p *Program) executeQuery(seq string) {
1340 if p.disableInput {
1341 return
1342 }
1343 p.execute(seq)
1344}
1345
1346// flush flushes the output buffer to the program output.
1347func (p *Program) flush() error {

Callers 2

eventLoopMethod · 0.95
RunMethod · 0.95

Calls 1

executeMethod · 0.95

Tested by

no test coverage detected