2 * \brief Header: execution routines
8 /*** typedefs(not structures) and defined constants **********************************************/
10 /* flags for shell_execute */
11 #define EXECUTE_INTERNAL (1 << 0)
12 #define EXECUTE_AS_SHELL (1 << 2)
13 #define EXECUTE_HIDE (1 << 3)
15 /*** enums ***************************************************************************************/
17 /* If true, after executing a command, wait for a keystroke */
21 pause_on_dumb_terminals
,
25 /*** structures declarations (and typedefs of structures)*****************************************/
27 /*** global variables defined in .c file *********************************************************/
29 extern int pause_after_run
;
31 /*** declarations of public functions ************************************************************/
33 /* Execute functions that use the shell to execute */
34 void shell_execute (const char *command
, int flags
);
36 /* This one executes a shell */
37 void exec_shell (void);
39 /* Handle toggling panels by Ctrl-O */
40 void toggle_panels (void);
42 /* Handle toggling panels by Ctrl-Z */
43 void suspend_cmd (void);
45 /* Execute command on a filename that can be on VFS */
46 void execute_with_vfs_arg (const char *command
, const char *filename
);
48 void post_exec (void);
51 /*** inline functions ****************************************************************************/
52 #endif /* MC__EXECUTE_H */