Skip to content

Commit b69a1ce

Browse files
committed
Console: Fix odd behavior with suppressing newline
1 parent 9f3a929 commit b69a1ce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/platform/console/device.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,15 @@ void default_write(const char *str) {
104104
}
105105
}
106106
}
107+
fflush(stdout);
107108
}
108109

109110
//
110111
// console output if vt100 (esc sequences) is supported
111112
//
112113
void vt100_write(const char *str) {
113114
printf("%s", str);
115+
fflush(stdout);
114116
}
115117

116118
void console_init() {

0 commit comments

Comments
 (0)