2009-02-05 21:28:18 +03:00
|
|
|
|
|
|
|
/** \file execute.h
|
|
|
|
* \brief Header: execution routines
|
|
|
|
*/
|
|
|
|
|
2003-06-22 13:17:46 +04:00
|
|
|
#ifndef MC_EXECUTE_H
|
|
|
|
#define MC_EXECUTE_H
|
|
|
|
|
2005-02-08 09:57:14 +03:00
|
|
|
/* flags for shell_execute */
|
|
|
|
#define EXECUTE_INTERNAL (1 << 0)
|
|
|
|
#define EXECUTE_AS_SHELL (1 << 2)
|
|
|
|
#define EXECUTE_HIDE (1 << 3)
|
2003-06-22 13:17:46 +04:00
|
|
|
|
|
|
|
/* Execute functions that use the shell to execute */
|
|
|
|
void shell_execute (const char *command, int flags);
|
|
|
|
|
|
|
|
/* This one executes a shell */
|
|
|
|
void exec_shell (void);
|
|
|
|
|
|
|
|
/* Handle toggling panels by Ctrl-O */
|
|
|
|
void toggle_panels (void);
|
|
|
|
|
|
|
|
/* Handle toggling panels by Ctrl-Z */
|
|
|
|
void suspend_cmd (void);
|
|
|
|
|
|
|
|
/* Execute command on a filename that can be on VFS */
|
|
|
|
void execute_with_vfs_arg (const char *command, const char *filename);
|
|
|
|
|
|
|
|
#endif /* !MC_EXECUTE_H */
|