changeset 2552:b9f178af9281

[project @ 1996-11-20 23:20:09 by jwe]
author jwe
date Wed, 20 Nov 1996 23:20:10 +0000
parents 65e2cd433c7f
children f57c52dcd5ed
files src/ChangeLog src/sysdep.cc src/toplev.cc
diffstat 3 files changed, 29 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,13 @@
 Wed Nov 20 00:35:57 1996  John W. Eaton  <jwe@bevo.che.wisc.edu>
 
+	* toplev.cc [USE_READLINE] (clean_up_and_exit):
+	Call rl_deprep_terminal() to restore terminal settings.
+
+	* sysdep.cc [__EMX__ && OS2] (Fextproc): New command.
+	[__EMX__ && OS2] (FEXTPROC): Alias for Fextproc.
+
+	* Version 1.93.
+
 	* sysdep.cc (octave_chdir): [__EMX__]: Make copy of string before
 	converting to upper case.
 
--- a/src/sysdep.cc
+++ b/src/sysdep.cc
@@ -626,6 +626,18 @@
   return retval;
 }
 
+#if defined (__EMX__) && defined (OS2)
+
+DEFUN_TEXT (extproc, , ,
+  "extproc : ignored by Octave")
+{
+  return octave_value_list ();
+}
+
+DEFALIAS (EXTPROC, extproc);
+
+#endif
+
 /*
 ;;; Local Variables: ***
 ;;; mode: C++ ***
--- a/src/toplev.cc
+++ b/src/toplev.cc
@@ -99,6 +99,11 @@
 int using_readline = 0;
 #endif
 
+#if defined (USE_READLINE)
+// This is from readline's rltty.c:
+extern "C" void rl_deprep_terminal (void);
+#endif
+
 // Nonzero means we printed messages about reading startup files.
 int reading_startup_message_printed = 0;
 
@@ -297,7 +302,11 @@
 void
 clean_up_and_exit (int retval)
 {
+#if defined (USE_READLINE)
+  rl_deprep_terminal ();
+#else
   raw_mode (0);
+#endif
 
   octave_command_history.clean_up_and_save ();