From: Ben Pfaff Date: Sat, 4 Nov 2006 23:49:35 +0000 (+0000) Subject: * msg-ui.c (handle_msg): Only write message to terminal if X-Git-Tag: v0.6.0~703 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1959a8562768999654fb385a5f8892a0c3a69f93;p=pspp-builds.git * msg-ui.c (handle_msg): Only write message to terminal if get_error_routing_to_terminal() returns true. --- diff --git a/src/ui/terminal/ChangeLog b/src/ui/terminal/ChangeLog index 7129d050..db86245e 100644 --- a/src/ui/terminal/ChangeLog +++ b/src/ui/terminal/ChangeLog @@ -1,3 +1,8 @@ +Sat Nov 4 15:48:04 2006 Ben Pfaff + + * msg-ui.c (handle_msg): Only write message to terminal if + get_error_routing_to_terminal() returns true. + Fri Jul 7 20:03:42 2006 Ben Pfaff * main.c: (main) Register SIGABRT with bug_handler also. diff --git a/src/ui/terminal/msg-ui.c b/src/ui/terminal/msg-ui.c index 9b71cb51..bcfe1ea6 100644 --- a/src/ui/terminal/msg-ui.c +++ b/src/ui/terminal/msg-ui.c @@ -141,9 +141,8 @@ handle_msg (const struct msg *m) ds_put_cstr (&string, m->text); - /* FIXME: Check set_messages and set_errors to determine where to - send errors and messages. */ - dump_message (ds_cstr (&string), get_viewwidth (), 8, stdout); + if (get_error_routing_to_terminal ()) + dump_message (ds_cstr (&string), get_viewwidth (), 8, stdout); ds_destroy (&string); }