noteQuery records that a terminal query is about to be written, so its reply can be read before the terminal is handed back. See [Program.drainQueryReplies].
()
| 1376 | // reply can be read before the terminal is handed back. See |
| 1377 | // [Program.drainQueryReplies]. |
| 1378 | func (p *Program) noteQuery() { |
| 1379 | p.lastQuery.Store(time.Now().UnixNano()) |
| 1380 | } |
| 1381 | |
| 1382 | // flush flushes the output buffer to the program output. |
| 1383 | func (p *Program) flush() error { |