Implement more sophisticated readline-mode
This commit is contained in:
@@ -176,8 +176,9 @@ public:
|
||||
|
||||
void handle_console_output() {
|
||||
int nbytes; const char *bytes;
|
||||
driven_->drv_peek_outgoing(0, &nbytes, &bytes);
|
||||
if (nbytes > 0) {
|
||||
while (true) {
|
||||
driven_->drv_peek_outgoing(0, &nbytes, &bytes);
|
||||
if (nbytes == 0) break;
|
||||
HANDLE hstdout = GetStdHandle(STD_OUTPUT_HANDLE);
|
||||
assert(hstdout != INVALID_HANDLE_VALUE);
|
||||
DWORD nwrote;
|
||||
|
||||
Reference in New Issue
Block a user