Mercurial > hg > octave-nkf
changeset 1291:5762998e76ab
[project @ 1995-04-30 22:01:58 by jwe]
author | jwe |
---|---|
date | Sun, 30 Apr 1995 22:02:02 +0000 |
parents | f7e62a1e6bf0 |
children | 6540bd86319a |
files | info/info.c info/session.c |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/info/info.c +++ b/info/info.c @@ -314,7 +314,7 @@ else { fprintf (stderr, "no entries found\n"); - status = 13; + status = -1; } close_dribble_file ();
--- a/info/session.c +++ b/info/session.c @@ -185,6 +185,11 @@ display_update_display (windows); info_last_executed_command = (VFunction *)NULL; info_read_and_dispatch (); + /* On program exit, leave the cursor at the bottom of the window, and + restore the terminal IO. */ + terminal_goto_xy (0, screenheight - 1); + terminal_clear_to_eol (); + fflush (stdout); terminal_unprep_terminal (); close_dribble_file (); }