View | Details | Raw Unified | Return to bug 217758
Collapse All | Expand All

(-)mc/files/patch-lib_tty_tty-slang.c (+28 lines)
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
 /* --------------------------------------------------------------------------------------------- */
(-)mc/Makefile (-1 / +1 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	mc
4
PORTNAME=	mc
5
PORTVERSION=	4.8.19
5
PORTVERSION=	4.8.19
6
PORTREVISION=	2
6
PORTREVISION=	3
7
CATEGORIES=	misc shells
7
CATEGORIES=	misc shells
8
MASTER_SITES=	http://ftp.midnight-commander.org/ \
8
MASTER_SITES=	http://ftp.midnight-commander.org/ \
9
		http://ftp.osuosl.org/pub/midnightcommander/
9
		http://ftp.osuosl.org/pub/midnightcommander/

Return to bug 217758