-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeclarations.h
More file actions
33 lines (33 loc) · 851 Bytes
/
Copy pathdeclarations.h
File metadata and controls
33 lines (33 loc) · 851 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#define clear() printf("\033[H\033[J")
#define NRM "\x1B[0m"
#define RED "\x1B[31m"
#define GRN "\x1B[32m"
#define YEL "\x1B[33m"
#define BLU "\x1B[34m"
#define MAG "\x1B[35m"
#define CYN "\x1B[36m"
#define WHT "\x1B[37m"
#define RESET "\e[m"
const int max_len = 1e5, max_path = 1e4;
int no_of_jobs = 0;
char home_dir[100000];
struct job_struct {
int job_number;
char job_name[100];
char job_status[100];
int job_pid;
};
struct job_struct all_jobs[100000];
int job_pid_to_job_number[100000];
int proc_type[100000];
pid_t global_pid, shell_pid;
char name[100000][40];
char foreground_proc[100000][30];
char commands[1000][1000];
int no_of_commands = 0;
char output_file[10000], input_file[10000];
int output_file_len, input_file_len, output, input;
char output_command[10000];
int output_command_len;
int key[1000];
int up[] = {27, 91, 65};