Mercurial > hg > octave-nkf
diff src/file-io.cc @ 870:b57450f85c07
[project @ 1994-11-02 16:58:12 by jwe]
author | jwe |
---|---|
date | Wed, 02 Nov 1994 16:58:12 +0000 |
parents | f19fb97286c6 |
children | 4a2133b26fa7 |
line wrap: on
line diff
--- a/src/file-io.cc +++ b/src/file-io.cc @@ -1352,7 +1352,14 @@ if (strcmp (type, "scanf") == 0 || (doing_fscanf && file.number () == 0)) { +// XXX FIXME XXX -- this should probably be possible for more than +// just stdin/stdout pairs, using a list of output streams to flush. +// The list could be created with a function like iostream's tie(). + + flush_output_to_pager (); + string = gnu_readline (""); + if (string && *string) maybe_save_history (string); }