Line 0
Link Here
|
|
|
1 |
--- lib/tty/tty-slang.c.orig 2017-06-23 07:25:32 UTC |
2 |
+++ lib/tty/tty-slang.c |
3 |
@@ -373,7 +373,11 @@ tty_shutdown (void) |
4 |
void |
5 |
tty_enter_ca_mode (void) |
6 |
{ |
7 |
- /* S-Lang handles alternate screen switching and cursor position saving */ |
8 |
+ if (mc_global.tty.xterm_flag) |
9 |
+ { |
10 |
+ fprintf (stdout, /* ESC_STR ")0" */ ESC_STR "7" ESC_STR "[?47h"); |
11 |
+ fflush (stdout); |
12 |
+ } |
13 |
} |
14 |
|
15 |
/* --------------------------------------------------------------------------------------------- */ |
16 |
@@ -381,7 +385,11 @@ tty_enter_ca_mode (void) |
17 |
void |
18 |
tty_exit_ca_mode (void) |
19 |
{ |
20 |
- /* S-Lang handles alternate screen switching and cursor position restoring */ |
21 |
+ if (mc_global.tty.xterm_flag) |
22 |
+ { |
23 |
+ fprintf (stdout, ESC_STR "[?47l" ESC_STR "8" ESC_STR "[m"); |
24 |
+ fflush (stdout); |
25 |
+ } |
26 |
} |
27 |
|
28 |
/* --------------------------------------------------------------------------------------------- */ |