* msg-ui.c (handle_msg): Only write message to terminal if
[pspp] / src / ui / terminal / msg-ui.c
index 9b71cb51eea1e69eb2c4670b91e171b3a765fcc1..bcfe1ea6dcda81b54f9b49b9bc37162ded66a36e 100644 (file)
@@ -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);
 }