svn commit: r456522 - in head/misc/mc: . files
Ben Woods
woodsb02 at FreeBSD.org
Sun Dec 17 06:58:42 UTC 2017
Author: woodsb02
Date: Sun Dec 17 06:58:41 2017
New Revision: 456522
URL: https://svnweb.freebsd.org/changeset/ports/456522
Log:
misc/mc: Fix SUBSHELL blank terminal upon opening in xterm with Slang
Note: Unfortunately this does not fix this issue on the FreeBSD console.
PR: 217758
Submitted by: Alexander Moisseev <moiseev at mezonplus.ru>
Reported by: Dron <dron_2 at ua.fm>
Reported by: danfe
MFH: 2017Q4
Added:
head/misc/mc/files/patch-lib_tty_tty-slang.c (contents, props changed)
Modified:
head/misc/mc/Makefile
Modified: head/misc/mc/Makefile
==============================================================================
--- head/misc/mc/Makefile Sun Dec 17 06:43:52 2017 (r456521)
+++ head/misc/mc/Makefile Sun Dec 17 06:58:41 2017 (r456522)
@@ -3,6 +3,7 @@
PORTNAME= mc
PORTVERSION= 4.8.20
+PORTREVISION= 1
CATEGORIES= misc shells
MASTER_SITES= http://ftp.midnight-commander.org/ \
http://ftp.osuosl.org/pub/midnightcommander/
Added: head/misc/mc/files/patch-lib_tty_tty-slang.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/misc/mc/files/patch-lib_tty_tty-slang.c Sun Dec 17 06:58:41 2017 (r456522)
@@ -0,0 +1,28 @@
+--- lib/tty/tty-slang.c.orig 2017-03-04 17:51:38 UTC
++++ lib/tty/tty-slang.c
+@@ -373,7 +373,11 @@ tty_shutdown (void)
+ void
+ tty_enter_ca_mode (void)
+ {
+- /* S-Lang handles alternate screen switching and cursor position saving */
++ if (mc_global.tty.xterm_flag)
++ {
++ fprintf (stdout, /* ESC_STR ")0" */ ESC_STR "7" ESC_STR "[?47h");
++ fflush (stdout);
++ }
+ }
+
+ /* --------------------------------------------------------------------------------------------- */
+@@ -381,7 +385,11 @@ tty_enter_ca_mode (void)
+ void
+ tty_exit_ca_mode (void)
+ {
+- /* S-Lang handles alternate screen switching and cursor position restoring */
++ if (mc_global.tty.xterm_flag)
++ {
++ fprintf (stdout, ESC_STR "[?47l" ESC_STR "8" ESC_STR "[m");
++ fflush (stdout);
++ }
+ }
+
+ /* --------------------------------------------------------------------------------------------- */
More information about the svn-ports-all
mailing list