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].
()
| 1393 | // reply can be read before the terminal is handed back. See |
| 1394 | // [Program.drainQueryReplies]. |
| 1395 | func (p *Program) noteQuery() { |
| 1396 | p.lastQuery.Store(time.Now().UnixNano()) |
| 1397 | } |
| 1398 | |
| 1399 | // flush flushes the output buffer to the program output. |
| 1400 | func (p *Program) flush() error { |