-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathls.h
65 lines (60 loc) · 1.6 KB
/
ls.h
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#include<stdio.h>
#include<iostream>
#include <sys/stat.h>
#include<algorithm>
#include<vector>
#include<dirent.h>
#include <iomanip>
#include<time.h>
#include<termios.h>
#include<string>
#include<string.h>
#include<limits.h>
#include<grp.h>
#include<pwd.h>
#include<stdlib.h>
#include<stack>
#include<unistd.h>
#include<sstream>
#include<fcntl.h>
#include<queue>
/* ##################################################################################
##########################Define escape sequences ##################################*/
#define ctop "\033[3;f"
#define cdown "\033[39;f"
#define clear "\033[H\033[J"
#define Q 81
#define q 113
#define COLON 58
#define ESC 27
#define BRAC 91
#define A 65
#define B 66
#define C 67
#define D 68
#define KEY_ESCAPE "0x001b"
#define KEY_ENTER "0x000a"
#define KEY_UP "\033[A"
#define KEY_DOWN "\033[B"
#define KEY_LEFT "\033[D"
#define KEY_RIGHT "\033[C"
#define ENTER 10
#define PERMISSION 0777
#define H 104
#define BSPACE 127
/*##############################Define escape sequences####################################
########################## ###############################################################*/
using namespace std;
#ifndef INC_MODULE1_H
#define INC_MODULE1_H
void ls(char path[]);
void cursor(char s[]);
void status_user_mode();
void status_command_mode(char path[]);
void copy_filedir(string spath , string dpath);
void remove_filedir(string dpath);
void search_filedir(string pattern,string path);
void search_print();
void snapshot(string path,string fname);
// void create_dirfile(string y,string dpath,int flag);
#endif /*INC_MODULE1_H*/