diff options
author | Andy Wingo <wingo@pobox.com> | 2009-06-22 22:57:48 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2009-06-22 22:57:48 +0200 |
commit | 0d646345f477f0ffced6f602370fc8c607f7d32f (patch) | |
tree | 26314319593087ca042e363ceda6846ed7741713 /libguile/scmsigs.c | |
parent | b674d4716abe775e648445795f02bece8a3396e0 (diff) | |
download | guile-0d646345f477f0ffced6f602370fc8c607f7d32f.tar.gz |
flush whitespace from the repl input buffer *before* evaluation
* module/system/repl/repl.scm (start-repl): Given that the input port of
the repl is line-buffered, it's likely we have #\newline in the input
that is strictly extraneous, an in-band indicator to the repl that it
should begin reading now. So flush out that newline, so that you can
(read-char) at the repl, and it actually does wait for you to type in
a char instead of just returning #\newline.
While it's not an overriding concern, this does fix some brainfuck
programs that want to input from the user.
Diffstat (limited to 'libguile/scmsigs.c')
0 files changed, 0 insertions, 0 deletions