From 0bfe2e0f77e03920f27d6a30c3eff61f0df83b6a Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Sat, 11 Apr 1998 17:05:48 +0000 Subject: [PATCH] Escape sequences are no more used on OS2_NT --- src/cmd.c | 12 ++++-------- src/text.c | 8 ++------ 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/src/cmd.c b/src/cmd.c index cda1926ae..44fcab78d 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -914,10 +914,8 @@ view_other_cmd (void) if (clear_before_exec) clr_scr (); #endif - - if (alternate_plus_minus && (console_flag || xterm_flag)) { - fprintf (stdout, "\033>"); fflush (stdout); - } + + numeric_keypad_mode (); #ifndef HAVE_SLANG /* With slang we don't want any of this, since there * is no mc_raw_mode supported @@ -953,10 +951,8 @@ view_other_cmd (void) if (!status_using_ncurses) do_enter_ca_mode (); - - if (alternate_plus_minus && (console_flag || xterm_flag)) { - fprintf (stdout, "\033="); fflush (stdout); - } + + application_keypad_mode (); reset_prog_mode (); keypad(stdscr, TRUE); #ifndef HAVE_X diff --git a/src/text.c b/src/text.c index 51164d99b..20d377c9a 100644 --- a/src/text.c +++ b/src/text.c @@ -63,9 +63,7 @@ edition_post_exec (void) channels_up (); if (use_mouse_p) init_mouse (); - if (alternate_plus_minus && (console_flag || xterm_flag)) { - fprintf (stdout, "\033="); fflush (stdout); - } + application_keypad_mode (); } void @@ -86,9 +84,7 @@ edition_pre_exec (void) keypad (stdscr, FALSE); endwin (); - if (alternate_plus_minus && (console_flag || xterm_flag)) { - fprintf (stdout, "\033>"); fflush (stdout); - } + numeric_keypad_mode (); /* on xterms: maybe endwin did not leave the terminal on the shell * screen page: do it now.