From 720e8692474b9ab8491727bd33a30fb1a8fb18cf Mon Sep 17 00:00:00 2001 From: Gary Houston Date: Wed, 9 Feb 2000 21:25:34 +0000 Subject: [PATCH] 2000-02-09 Gary Houston * init.c (scm_init_standard_ports): when stdout is a tty, make the current-output-port unbuffered by default. this is less confusing for interactive use. it was line-buffered because of a performance problem with unbuffered ports, but I think it will be OK now. --- libguile/ChangeLog | 8 ++++++++ libguile/init.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/libguile/ChangeLog b/libguile/ChangeLog index 6da2b4ab2..70068bc38 100644 --- a/libguile/ChangeLog +++ b/libguile/ChangeLog @@ -1,3 +1,11 @@ +2000-02-09 Gary Houston + + * init.c (scm_init_standard_ports): when stdout is a tty, make the + current-output-port unbuffered by default. this is less confusing + for interactive use. it was line-buffered because of a + performance problem with unbuffered ports, but I think it will be + OK now. + 2000-02-08 Gary Houston * __scm.h: don't define long_long or ulong_long if HAVE_LONG_LONGS diff --git a/libguile/init.c b/libguile/init.c index 9567e38d7..ef177bfea 100644 --- a/libguile/init.c +++ b/libguile/init.c @@ -280,7 +280,7 @@ scm_init_standard_ports () isatty (0) ? "r0" : "r", "standard input"); scm_def_outp = scm_standard_stream_to_port (1, - isatty (1) ? "wl" : "w", + isatty (1) ? "w0" : "w", "standard output"); scm_def_errp = scm_standard_stream_to_port (2, isatty (2) ? "w0" : "w",