You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
887 B
31 lines
887 B
Index: lib/tty/tty-ncurses.c |
|
--- lib/tty/tty-ncurses.c.orig 2017-03-04 18:51:38.000000000 +0100 |
|
+++ lib/tty/tty-ncurses.c 2017-06-17 09:35:11.725343000 +0200 |
|
@@ -56,7 +56,8 @@ |
|
/* include at last !!! */ |
|
#ifdef WANT_TERM_H |
|
#ifdef HAVE_NCURSES_TERM_H |
|
-#include <ncurses/term.h> |
|
+#define NCURSES_INTERNALS 1 |
|
+#include "ncurses/term.h" |
|
#else |
|
#include <term.h> |
|
#endif /* HAVE_NCURSES_TERM_H */ |
|
@@ -245,7 +246,7 @@ |
|
void |
|
tty_enter_ca_mode (void) |
|
{ |
|
- if (mc_global.tty.xterm_flag && smcup != NULL) |
|
+ if (mc_global.tty.xterm_flag) |
|
{ |
|
fprintf (stdout, /* ESC_STR ")0" */ ESC_STR "7" ESC_STR "[?47h"); |
|
fflush (stdout); |
|
@@ -257,7 +258,7 @@ |
|
void |
|
tty_exit_ca_mode (void) |
|
{ |
|
- if (mc_global.tty.xterm_flag && rmcup != NULL) |
|
+ if (mc_global.tty.xterm_flag) |
|
{ |
|
fprintf (stdout, ESC_STR "[?47l" ESC_STR "8" ESC_STR "[m"); |
|
fflush (stdout);
|
|
|