summaryrefslogtreecommitdiff
path: root/src/ui-cmdwin.c
AgeCommit message (Collapse)Author
2017-04-01ui-cmdwin: prevent excessive buffering on captured stdio streamsJoshua Judson Rosen
Streams that start out connected to non-tty FDs default to fully-buffered and retain that configuration after those underlying FDs are redirected, which prevents the "need to run from an xterm" fix from actually working unless we do something like this to reset the stream buffers.
2017-04-01Drop undocumented readline dependencyJoshua Judson Rosen
Yet another of the niceties that comes out of just using guile's REPL is that readline support is just figured out when building guile; so by the time gnurobots is being built, readline support is either there or it isn't--and even if our guile isn't readline-enabled, we can still just run without readline (though, in practice, I don't think I've ever seen a build of guile in the last 15 years that didn't have readline...).
2017-03-28REPL: just use guile's normal REPLJoshua Judson Rosen
This gives _much_ more useful readline behavior, since (ice-9 readline) actually knows how to autocomplete based on the scheme environment, handle multi-line input, etc.; and properly displays return values and error-messages, and supports switching to different front-end programming languages like ecmascript. Note that we're keeping catch_handler so that we have a chance of diagnosing problems that could _conceivably_ occur when interacting with guile during bootstrap (e.g.: missing readline support, changed REPL API...).
2017-03-28ui-cmdwin: redirect all stdio into the embedded terminalJoshua Judson Rosen
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*.
2017-03-28Migrate to guile 2.0Iain R. Learmonth
Fixes: <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=746000>
2008-08-03Add Gtk interface. Using a Vte for guile input.Bradley Smith
Signed-off-by: Bradley Smith <brad@brad-smith.co.uk>