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_cd (const char *new_dir
, enum cd_enum exact
)
60 do_subshell_chdir (const vfs_path_t
* vpath
, gboolean update_prompt
, gboolean reset_prompt
)
68 shell_execute (const char *command
, int flags
)
75 panel_load_setup (WPanel
* panel
, const char *section
)
82 panel_save_setup (WPanel
* panel
, const char *section
)
95 select_charset (int center_y
, int center_x
, int current_charset
, gboolean seldisplay
)
99 (void) current_charset
;
106 update_xterm_title_path (void)
111 init_my_statfs (void)
115 my_statfs (struct my_statfs
*myfs_stats
, const char *path
)
122 clean_dir (dir_list
* list
, int count
)
130 get_panel_widget (int idx
)
139 do_load_dir (const char *path
, dir_list
* list
, sortfn
* sort
, gboolean reverse
,
140 gboolean case_sensitive
, gboolean exec_ff
, const char *fltr
)
146 (void) case_sensitive
;
154 do_reload_dir (const vfs_path_t
* vpath
, dir_list
* list
, sortfn
* sort
, int count
,
155 gboolean reverse
, gboolean case_sensitive
, gboolean exec_ff
, const char *fltr
)
162 (void) case_sensitive
;
171 do_sort (dir_list
* list
, sortfn
* sort
, int top
, gboolean reverse
,
172 gboolean case_sensitive
, gboolean exec_ff
)
178 (void) case_sensitive
;
183 regex_command (const char *filename
, const char *action
, int *move_dir
)
193 if_link_is_exe (const char *full_name
, const file_entry
* file
)
207 set_zero_dir (dir_list
* list
)
215 load_hint (gboolean force
)
221 get_display_type (int idx
)
228 get_current_type (void)
234 get_other_type (void)
240 get_current_index (void)
246 get_other_index (void)
252 unsorted (file_entry
* a
, file_entry
* b
)
261 sort_name (file_entry
* a
, file_entry
* b
)
270 sort_vers (file_entry
* a
, file_entry
* b
)
279 sort_ext (file_entry
* a
, file_entry
* b
)
288 sort_time (file_entry
* a
, file_entry
* b
)
297 sort_atime (file_entry
* a
, file_entry
* b
)
306 sort_ctime (file_entry
* a
, file_entry
* b
)
315 sort_size (file_entry
* a
, file_entry
* b
)
324 sort_inode (file_entry
* a
, file_entry
* b
)
333 set_display_type (int num
, panel_view_mode_t type
)
340 copy_cmd_local (void)
345 delete_cmd_local (void)
360 rename_cmd_local (void)
365 select_invert_cmd (void)
380 get_other_panel (void)
385 const panel_field_t
*
386 sort_box (panel_sort_info_t
* info
)
394 midnight_set_buttonbar (WButtonBar
* b
)