mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
console/linenoise: support buffered stdout
This commit is contained in:
parent
75287eb569
commit
fa57fb3c1c
@ -106,6 +106,7 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdio_ext.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@ -879,6 +880,9 @@ static int linenoiseEdit(char *buf, size_t buflen, const char *prompt)
|
|||||||
linenoiseEditDeletePrevWord(&l);
|
linenoiseEditDeletePrevWord(&l);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if (__fbufsize(stdout) > 0) {
|
||||||
|
fflush(stdout);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return l.len;
|
return l.len;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user