Date: Mon, 27 Oct 2014 11:16:53 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 194627] New: misc/mc 4.8.13 does not save/restore the sub-shell's screen on Ctrl+O and/or command execution Message-ID: <bug-194627-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194627 Bug ID: 194627 Summary: misc/mc 4.8.13 does not save/restore the sub-shell's screen on Ctrl+O and/or command execution Product: Ports Tree Version: Latest Hardware: Any OS: Any Status: Needs Triage Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: andriys@gmail.com CC: nemysis@FreeBSD.org CC: nemysis@FreeBSD.org This happens due to rev 369133 incorrectly updates the files/patch-lib__tty__win patch. Commit message says this patch file is changed by upstream, but the truth is removed part is actually vital for sub-shell screen save/restore to work properly. The following patch reverts the change and fixes the problem for me: Index: misc/mc/files/patch-lib__tty__win.c =================================================================== --- misc/mc/files/patch-lib__tty__win.c (revision 370042) +++ misc/mc/files/patch-lib__tty__win.c (working copy) @@ -1,5 +1,14 @@ --- lib/tty/win.c.orig 2014-09-02 09:23:58 UTC +++ lib/tty/win.c +@@ -95,7 +95,7 @@ + void + do_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); @@ -107,7 +107,7 @@ void do_exit_ca_mode (void) --- Comment #1 from Bugzilla Automation <bugzilla@FreeBSD.org> --- Maintainers CC'd -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-194627-13>