8 /* Toggling functions */
9 void toggle_fast_reload (void);
10 void toggle_mix_all_files (void);
11 void toggle_show_backup (void);
12 void toggle_show_hidden (void);
16 #define UP_ONLY_CURRENT 2
18 #define UP_KEEPSEL ((char *) -1)
21 extern volatile int quit
;
23 /* If true, after executing a command, wait for a keystroke */
24 enum { pause_never
, pause_on_dumb_terminals
, pause_always
};
26 void subshell_chdir (const char *command
);
28 /* See main.c for details on these variables */
29 extern int mark_moves_down
;
31 extern int pause_after_run
;
32 extern int auto_save_setup
;
33 extern int use_internal_view
;
34 extern int use_internal_edit
;
35 extern int fast_reload_w
;
36 extern int clear_before_exec
;
37 extern int mou_auto_repeat
;
38 extern char *other_dir
;
39 extern int mouse_move_pages
;
42 extern int source_codepage
;
43 extern int display_codepage
;
45 extern int eight_bit_clean
;
46 extern int full_eight_bits
;
47 #endif /* !HAVE_CHARSET */
49 extern int confirm_view_dir
;
50 extern int fast_refresh
;
51 extern int navigate_with_arrows
;
52 extern int force_ugly_line_drawing
;
53 extern int drop_menus
;
54 extern int cd_symlinks
;
55 extern int show_all_if_ambiguous
;
56 extern int slow_terminal
;
57 extern int update_prompt
; /* To comunicate with subshell */
58 extern int safe_delete
;
59 extern int confirm_delete
;
60 extern int confirm_directory_hotlist_delete
;
61 extern int confirm_execute
;
62 extern int confirm_exit
;
63 extern int confirm_overwrite
;
64 extern int force_colors
;
65 extern int boot_current_is_left
;
66 extern int use_file_to_check_type
;
67 extern int vfs_use_limit
;
68 extern int alternate_plus_minus
;
69 extern int only_leading_plus_minus
;
70 extern int output_starts_shell
;
71 extern int midnight_shutdown
;
72 extern char cmd_buf
[512];
73 extern const char *shell
;
74 extern int auto_fill_mkdir_name
;
76 /* Ugly hack in order to distinguish between left and right panel in menubar */
77 extern int is_right
; /* If the selected menu was the right */
78 #define MENU_PANEL (is_right ? right_panel : left_panel)
79 #define MENU_PANEL_IDX (is_right ? 1 : 0)
80 #define SELECTED_IS_PANEL (get_display_type (is_right ? 1 : 0) == view_listing)
82 typedef void (*key_callback
) (void);
84 /* The keymaps are of this type */
90 void update_panels (int force_update
, const char *current_file
);
91 void repaint_screen (void);
92 void do_update_prompt (void);
99 int do_cd (const char *new_dir
, enum cd_enum cd_type
); /* For find.c */
100 void change_panel (void);
101 int load_prompt (int, void *);
102 void save_cwds_stat (void);
103 void quiet_quit_cmd (void); /* For cmd.c and command.c */
105 void touch_bar (void);
106 void update_xterm_title_path (void);
107 void load_hint (int force
);
109 void print_vfs_message(const char *msg
, ...)
110 __attribute__ ((format (__printf__
, 1, 2)));
112 extern const char *prompt
;
113 extern const char *edit_one_file
;
114 extern char *mc_home
;
115 char *get_mc_lib_dir (void);
117 int maybe_cd (int move_up_dir
);
118 void do_possible_cd (const char *dir
);
120 void done_menu (void);
121 void init_menu (void);
123 #define MC_BASE "/.mc/"
125 void directory_history_add (struct WPanel
*panel
, const char *dir
);
126 int do_panel_cd (struct WPanel
*panel
, const char *new_dir
, enum cd_enum cd_type
);