summaryrefslogtreecommitdiff
path: root/src/ui-window.c
diff options
context:
space:
mode:
authorJoshua Judson Rosen2017-03-19 15:28:00 -0400
committerJoshua Judson Rosen2017-03-28 22:07:50 -0400
commit73e697ac8fbe37096be960b87b684d20d4bad0eb (patch)
treeda4ace15e12fa940ba9e907211f711ba90507ebc /src/ui-window.c
parentDrop unnecessary spinlock (loading, ploading) (diff)
downloadgnurobots-73e697ac8fbe37096be960b87b684d20d4bad0eb.tar.gz
ui-cmdwin: redirect all stdio into the embedded terminal
Users should no longer need to run from an xterm to see to see things like final energy/score/odometry stats, map-file path, copyright, load-messages, etc. Note that this also means we no longer need to redirect readline, since we're just redirecting *everything*.
Diffstat (limited to 'src/ui-window.c')
-rw-r--r--src/ui-window.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui-window.c b/src/ui-window.c
index e923c24..8034138 100644
--- a/src/ui-window.c
+++ b/src/ui-window.c
@@ -57,7 +57,10 @@ static void ui_window_init(UIWindow *window)
gtk_window_set_title(GTK_WINDOW(window), "GNU Robots");
gtk_window_set_resizable(GTK_WINDOW(window), FALSE);
+ /* stdio is redirected in here...: */
window->priv->cmdwin = ui_cmdwin_new();
+ /* ^so that's needed before guile can start... */
+
window->priv->arena = ui_arena_new();
}