1 #include "src/subshell.h"
5 panels_options_t panels_options
;
6 struct mc_fhl_struct
*mc_filehighlight
;
7 int confirm_execute
= 0;
8 int auto_save_setup
= 0;
10 int horizontal_split
= 0;
11 int first_panel_size
= 0;
12 int default_source_codepage
= 0;
13 int menubar_visible
= 1;
14 WPanel
*current_panel
;
16 WMenuBar
*the_menubar
;
17 const global_keymap_t
*panel_map
;
18 gboolean command_prompt
;
21 panels_layout_t panels_layout
= {
22 .horizontal_split
= 0,
25 .horizontal_equal
= 1,
30 command_new (int y
, int x
, int cols
)
33 const input_colors_t command_colors
= {
40 cmd
= input_new (y
, x
, (int *) command_colors
, cols
, "", "cmdline",
41 INPUT_COMPLETE_DEFAULT
| INPUT_COMPLETE_CD
| INPUT_COMPLETE_COMMANDS
|
42 INPUT_COMPLETE_SHELL_ESC
);
45 cmd
->widget
.callback
= NULL
;
51 do_subshell_chdir (const vfs_path_t
* vpath
, gboolean update_prompt
, gboolean reset_prompt
)
59 shell_execute (const char *command
, int flags
)
66 panel_load_setup (WPanel
* panel
, const char *section
)
73 panel_save_setup (WPanel
* panel
, const char *section
)
87 select_charset (int center_y
, int center_x
, int current_charset
, gboolean seldisplay
)
91 (void) current_charset
;
99 update_xterm_title_path (void)
104 init_my_statfs (void)
108 my_statfs (struct my_statfs
*myfs_stats
, const char *path
)
115 clean_dir (dir_list
* list
, int count
)
123 get_panel_widget (int idx
)
132 do_load_dir (const vfs_path_t
*vpath
, dir_list
* list
, sortfn
* sort
, gboolean reverse
,
133 gboolean case_sensitive
, gboolean exec_ff
, const char *fltr
)
139 (void) case_sensitive
;
147 do_reload_dir (const vfs_path_t
* vpath
, dir_list
* list
, sortfn
* sort
, int count
,
148 gboolean reverse
, gboolean case_sensitive
, gboolean exec_ff
, const char *fltr
)
155 (void) case_sensitive
;
164 do_sort (dir_list
* list
, sortfn
* sort
, int top
, gboolean reverse
,
165 gboolean case_sensitive
, gboolean exec_ff
)
171 (void) case_sensitive
;
176 regex_command (const vfs_path_t
*filename
, const char *action
)
185 if_link_is_exe (const vfs_path_t
*full_name
, const file_entry
* file
)
199 set_zero_dir (dir_list
* list
)
207 load_hint (gboolean force
)
213 get_display_type (int idx
)
220 get_current_type (void)
226 get_other_type (void)
232 get_current_index (void)
238 get_other_index (void)
244 unsorted (file_entry
* a
, file_entry
* b
)
253 sort_name (file_entry
* a
, file_entry
* b
)
262 sort_vers (file_entry
* a
, file_entry
* b
)
271 sort_ext (file_entry
* a
, file_entry
* b
)
280 sort_time (file_entry
* a
, file_entry
* b
)
289 sort_atime (file_entry
* a
, file_entry
* b
)
298 sort_ctime (file_entry
* a
, file_entry
* b
)
307 sort_size (file_entry
* a
, file_entry
* b
)
316 sort_inode (file_entry
* a
, file_entry
* b
)
325 set_display_type (int num
, panel_view_mode_t type
)
332 copy_cmd_local (void)
337 delete_cmd_local (void)
352 rename_cmd_local (void)
357 select_invert_cmd (void)
372 get_other_panel (void)
377 const panel_field_t
*
378 sort_box (panel_sort_info_t
* info
)
386 midnight_set_buttonbar (WButtonBar
* b
)