Tweak background operations support.
[midnight-commander.git] / lib / global.c
blob29ad615e09188b5c4614d9e3568b579ecc4e466d
1 /*
2 Global structure for some library-related variables
4 Copyright (C) 2009, 2011
5 The Free Software Foundation, Inc.
7 Written by:
8 Slava Zanko <slavazanko@gmail.com>, 2009.
10 This file is part of the Midnight Commander.
12 The Midnight Commander is free software: you can redistribute it
13 and/or modify it under the terms of the GNU General Public License as
14 published by the Free Software Foundation, either version 3 of the License,
15 or (at your option) any later version.
17 The Midnight Commander is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 GNU General Public License for more details.
22 You should have received a copy of the GNU General Public License
23 along with this program. If not, see <http://www.gnu.org/licenses/>.
26 /** \file glibcompat.c
27 * \brief Source: global structure for some library-related variables
31 #include <config.h>
33 #include "global.h"
36 /* *INDENT-OFF* */
37 #ifdef HAVE_SUBSHELL_SUPPORT
38 # ifdef SUBSHELL_OPTIONAL
39 # define SUBSHELL_USE FALSE
40 # else /* SUBSHELL_OPTIONAL */
41 # define SUBSHELL_USE TRUE
42 # endif /* SUBSHELL_OPTIONAL */
43 #else /* !HAVE_SUBSHELL_SUPPORT */
44 # define SUBSHELL_USE FALSE
45 #endif /* !HAVE_SUBSHELL_SUPPORT */
46 /* *INDENT-ON* */
48 /*** global variables ****************************************************************************/
50 /* *INDENT-OFF* */
51 mc_global_t mc_global = {
52 #ifdef ENABLE_BACKGROUND
53 .we_are_background = 0,
54 #endif /* ENABLE_BACKGROUND */
56 .message_visible = 1,
57 .keybar_visible = 1,
58 .mc_run_mode = MC_RUN_FULL,
60 #ifdef HAVE_CHARSET
61 .source_codepage = -1,
62 .display_codepage = -1,
63 #else
64 .eight_bit_clean = 1,
65 .full_eight_bits = 0,
66 #endif /* !HAVE_CHARSET */
68 .utf8_display = 0,
69 .sysconfig_dir = NULL,
70 .share_data_dir = NULL,
72 .is_right = FALSE,
74 .skin = NULL,
76 .widget =
78 .midnight_shutdown = FALSE,
79 .confirm_history_cleanup = TRUE,
80 .show_all_if_ambiguous = FALSE
83 .tty =
85 .setup_color_string = NULL,
86 .term_color_string = NULL,
87 .color_terminal_string = NULL,
88 #ifndef LINUX_CONS_SAVER_C
89 .console_flag = '\0',
90 #endif /* !LINUX_CONS_SAVER_C */
92 .use_subshell = SUBSHELL_USE,
94 #ifdef HAVE_SUBSHELL_SUPPORT
95 .subshell_pty = 0,
96 #endif /* !HAVE_SUBSHELL_SUPPORT */
98 .winch_flag = FALSE,
99 .command_line_colors = NULL,
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,
109 .vfs =
111 .cd_symlinks = TRUE,
112 .preallocate_space = FALSE,
116 /* *INDENT-ON* */
118 #undef SUBSHELL_USE
120 /*** file scope macro definitions ****************************************************************/
122 /*** file scope type declarations ****************************************************************/
124 /*** file scope variables ************************************************************************/
126 /*** file scope functions ************************************************************************/
128 /*** public functions ****************************************************************************/
129 /* --------------------------------------------------------------------------------------------- */