1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31 #include <config.h>
32
33 #include "mc-version.h"
34
35 #include "global.h"
36
37 #ifdef ENABLE_SUBSHELL
38 #ifdef SUBSHELL_OPTIONAL
39 #define SUBSHELL_USE FALSE
40 #else
41 #define SUBSHELL_USE TRUE
42 #endif
43 #else
44 #define SUBSHELL_USE FALSE
45 #endif
46
47
48
49 mc_global_t mc_global =
50 {
51 .mc_version = MC_CURRENT_VERSION,
52
53 .mc_run_mode = MC_RUN_FULL,
54 .run_from_parent_mc = FALSE,
55 .midnight_shutdown = FALSE,
56
57 .sysconfig_dir = NULL,
58 .share_data_dir = NULL,
59
60 .profile_name = NULL,
61
62 .source_codepage = -1,
63 .display_codepage = -1,
64 .utf8_display = FALSE,
65
66 .message_visible = TRUE,
67 .keybar_visible = TRUE,
68
69 #ifdef ENABLE_BACKGROUND
70 .we_are_background = FALSE,
71 #endif
72
73 .widget =
74 {
75 .confirm_history_cleanup = TRUE,
76 .show_all_if_ambiguous = FALSE,
77 .is_right = FALSE
78 },
79
80 .shell = NULL,
81
82 .tty =
83 {
84 .skin = NULL,
85 .shadows = TRUE,
86 .setup_color_string = NULL,
87 .term_color_string = NULL,
88 .color_terminal_string = NULL,
89 .command_line_colors = NULL,
90 #ifndef LINUX_CONS_SAVER_C
91 .console_flag = '\0',
92 #endif
93
94 .use_subshell = SUBSHELL_USE,
95
96 #ifdef ENABLE_SUBSHELL
97 .subshell_pty = 0,
98 #endif
99
100 .xterm_flag = FALSE,
101 .disable_x11 = FALSE,
102 .slow_terminal = FALSE,
103 .disable_colors = FALSE,
104 .ugly_line_drawing = FALSE,
105 .old_mouse = FALSE,
106 .alternate_plus_minus = FALSE
107 },
108
109 .vfs =
110 {
111 .cd_symlinks = TRUE,
112 .preallocate_space = FALSE,
113 }
114
115 };
116
117 #undef SUBSHELL_USE
118
119
120
121
122
123
124
125
126
127
128