mirror of
https://git.freebsd.org/ports.git
synced 2025-06-13 00:30:33 -04:00
Note: Unfortunately this does not fix this issue on the FreeBSD console. PR: 217758 Submitted by: Alexander Moisseev <moiseev@mezonplus.ru> Reported by: Dron <dron_2@ua.fm> Reported by: danfe MFH: 2017Q4
28 lines
902 B
C
28 lines
902 B
C
--- 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);
|
|
+ }
|
|
}
|
|
|
|
/* --------------------------------------------------------------------------------------------- */
|