diff --git a/lib/tty/tty-internal.h b/lib/tty/tty-internal.h
index 77f0062..8543c35 100644
a
|
b
|
|
30 | 30 | /* The mouse is currently: TRUE - enabled, FALSE - disabled */ |
31 | 31 | extern gboolean mouse_enabled; |
32 | 32 | |
| 33 | #ifndef __FreeBSD__ |
33 | 34 | /* terminal ca capabilities */ |
34 | 35 | extern char *smcup; |
35 | 36 | extern char *rmcup; |
| 37 | #endif |
36 | 38 | |
37 | 39 | /*** declarations of public functions ************************************************************/ |
38 | 40 | |
diff --git a/lib/tty/tty.c b/lib/tty/tty.c
index c33e566..8d838e7 100644
a
|
b
|
tty_init_xterm_support (gboolean is_xterm) |
279 | 279 | xmouse_seq = tty_tgetstr ("kmous"); |
280 | 280 | if (xmouse_seq == NULL) |
281 | 281 | xmouse_seq = tty_tgetstr ("Km"); |
| 282 | #ifndef __FreeBSD__ |
282 | 283 | smcup = tty_tgetstr ("smcup"); |
283 | 284 | if (smcup == NULL) |
284 | 285 | smcup = tty_tgetstr ("ti"); |
285 | 286 | rmcup = tty_tgetstr ("rmcup"); |
286 | 287 | if (rmcup == NULL) |
287 | 288 | rmcup = tty_tgetstr ("te"); |
| 289 | #endif |
288 | 290 | |
289 | 291 | if (strcmp (termvalue, "cygwin") == 0) |
290 | 292 | { |
diff --git a/lib/tty/win.c b/lib/tty/win.c
index e7cf59c..3521f15 100644
a
|
b
|
anything_ready (void) |
95 | 95 | void |
96 | 96 | do_enter_ca_mode (void) |
97 | 97 | { |
98 | | if (mc_global.tty.xterm_flag && smcup != NULL) |
| 98 | if (mc_global.tty.xterm_flag |
| 99 | #ifndef __FreeBSD__ |
| 100 | && smcup != NULL |
| 101 | #endif |
| 102 | ) |
| 103 | |
99 | 104 | { |
100 | 105 | fprintf (stdout, /* ESC_STR ")0" */ ESC_STR "7" ESC_STR "[?47h"); |
101 | 106 | fflush (stdout); |
… |
… |
do_enter_ca_mode (void) |
107 | 112 | void |
108 | 113 | do_exit_ca_mode (void) |
109 | 114 | { |
110 | | if (mc_global.tty.xterm_flag && rmcup != NULL) |
| 115 | if (mc_global.tty.xterm_flag |
| 116 | #ifndef __FreeBSD__ |
| 117 | && rmcup != NULL |
| 118 | #endif |
| 119 | ) |
111 | 120 | { |
112 | 121 | fprintf (stdout, ESC_STR "[?47l" ESC_STR "8" ESC_STR "[m"); |
113 | 122 | fflush (stdout); |