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)
| 1337 | // position reports, clipboard reads, and terminal version and termcap |
| 1338 | // queries. |
| 1339 | func (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. |
| 1347 | func (p *Program) flush() error { |