Browse code

Increase tty buffer to 16k

This should avoid tearing when displaying many very long results

John Hawthorn authored on 12/07/2025 04:06:17
Showing 1 changed files

... ...
@@ -39,7 +39,7 @@ void tty_init(tty_t *tty, const char *tty_filename) {
39 39
 		exit(EXIT_FAILURE);
40 40
 	}
41 41
 
42
-	if (setvbuf(tty->fout, NULL, _IOFBF, 4096)) {
42
+	if (setvbuf(tty->fout, NULL, _IOFBF, 16384)) {
43 43
 		perror("setvbuf");
44 44
 		exit(EXIT_FAILURE);
45 45
 	}