Age | Commit message (Collapse) | Author |
|
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.
|
|
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...).
|
|
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...).
|
|
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*.
|
|
Fixes: <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=746000>
|
|
Signed-off-by: Bradley Smith <brad@brad-smith.co.uk>
|