Fix bb_put_cr on non-GNO (it wasn't flushing stdout before printing the CR, leading to the prior character not appearing).

This commit is contained in:
Stephen Heumann 2014-12-14 14:21:25 -06:00
parent 55302cd56c
commit 3887b30719

View File

@ -433,8 +433,10 @@ static void bb_put_cr(void)
#ifdef __GNO__
struct sgttyb initial_settings;
struct sgttyb new_settings;
#endif
fflush(stdout);
#ifdef __GNO__
ioctl(STDOUT_FILENO, TIOCGETP, &initial_settings);
new_settings = initial_settings;
new_settings.sg_flags &= ~CRMOD;