mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Merge pull request #93 from larsks/bug/92
Disable line buffering in stdout
This commit is contained in:
commit
354bd6e185
1 changed files with 4 additions and 0 deletions
|
|
@ -286,6 +286,10 @@ void stdout_configure(void)
|
|||
{
|
||||
int status;
|
||||
|
||||
/* Disable line buffering in stdout. This is necessary if we
|
||||
* want things like local echo to work correctly. */
|
||||
setbuf(stdout, NULL);
|
||||
|
||||
/* Save current stdout settings */
|
||||
if (tcgetattr(STDOUT_FILENO, &stdout_old) < 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue