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	Sun Apr 30 16:17:26 1995 +0000
+++ b/info/info.c	Sun Apr 30 22:02:02 1995 +0000
@@ -314,7 +314,7 @@
       else
 	{
 	  fprintf (stderr, "no entries found\n");
-	  status = 13;
+	  status = -1;
 	}
 
       close_dribble_file (); 
--- a/info/session.c	Sun Apr 30 16:17:26 1995 +0000
+++ b/info/session.c	Sun Apr 30 22:02:02 1995 +0000
@@ -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 ();
 }