mirror of
https://github.com/sheumann/hush.git
synced 2025-01-10 16:29:44 +00:00
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:
parent
55302cd56c
commit
3887b30719
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user