Browse code

Use full buffering rather than line-buffering

John Hawthorn authored on 21/08/2014 02:07:46
Showing 1 changed files

  • tty.c index 9084456..cac76de 100644
... ...
@@ -13,6 +13,7 @@ void tty_reset(tty_t *tty){
13 13
 void tty_init(tty_t *tty){
14 14
 	tty->fdin = open("/dev/tty", O_RDONLY);
15 15
 	tty->fout = fopen("/dev/tty", "w");
16
+	setvbuf(tty->fout, NULL, _IOFBF, 4096);
16 17
 
17 18
 	tcgetattr(tty->fdin, &tty->original_termios);
18 19