pspp: Fix interactive usability for multi-line commands. fc11-i386-build78 fc11-x64-build75 sid-i386-build145
authorBen Pfaff <blp@gnu.org>
Tue, 19 Jan 2010 06:19:13 +0000 (22:19 -0800)
committerBen Pfaff <blp@gnu.org>
Tue, 19 Jan 2010 06:19:13 +0000 (22:19 -0800)
commit97949b7afde73c20b85ac9040fdead71e01f33b1
treee959d84f7dbb8099dca74df56f4eced4aebaf189
parentc53e5d60298cba39cad94ad6daa14e6038a6762c
pspp: Fix interactive usability for multi-line commands.

Until now, the terminal UI has only flushed output just before reading
the first line of a command.  This generally worked OK because typically
only the final command produced output, not intermediate lines.  But now
every line of a command potentially produces output (e.g. the command name
or the command syntax).  With the ASCII driver that makes the interface
difficult to use because it typically opens and holds open a pipe to an
interactive program such as "more", which in turn turns off terminal echo
etc.

Flushing output before reading each command avoids this problem and makes
the terminal UI more usable.
src/ui/terminal/read-line.c