Merge branch '2031_solaris_FISH_fix'
[midnight-commander.git] / src / execute.h
blob7730b7b917d41c613a8dbddee1aa38de54ce6371
1 /** \file execute.h
2 * \brief Header: execution routines
3 */
5 #ifndef MC__EXECUTE_H
6 #define MC__EXECUTE_H
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 */
18 enum
20 pause_never,
21 pause_on_dumb_terminals,
22 pause_always
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);
49 void pre_exec (void);
51 /*** inline functions ****************************************************************************/
52 #endif /* MC__EXECUTE_H */