1
2
3
4
5 #ifndef MC__SUBSHELL_H
6 #define MC__SUBSHELL_H
7
8
9
10
11
12
13
14 enum subshell_state_enum
15 {
16 INACTIVE,
17 ACTIVE,
18 RUNNING_COMMAND
19 };
20
21
22 enum
23 {
24 QUIETLY,
25 VISIBLY
26 };
27
28
29
30
31
32 extern enum subshell_state_enum subshell_state;
33
34
35 extern GString *subshell_prompt;
36
37 extern gboolean update_subshell_prompt;
38
39 extern gboolean should_read_new_subshell_prompt;
40
41
42
43 void init_subshell (void);
44 int invoke_subshell (const char *command, int how, vfs_path_t ** new_dir);
45 gboolean flush_subshell (int max_wait_length, int how);
46 gboolean read_subshell_prompt (void);
47 void do_update_prompt (void);
48 gboolean exit_subshell (void);
49 void do_subshell_chdir (const vfs_path_t * vpath, gboolean update_prompt);
50 void subshell_get_console_attributes (void);
51 void sigchld_handler (int sig);
52
53
54
55 #endif