Less idiotic includes
[minishell-2.git] / Headers / input.h
blob2f7c5e834690d820db806f0b9f68382fe544e433
1 #ifndef INPUT_H
2 #define INPUT_H
4 #include <string> // strings
5 #include <vector> // vectors
7 using std::string;
8 using std::vector;
10 #define RED_ANSI "\x1b[31m" // ANSI escape code for red
11 #define BLUE_ANSI "\x1b[34m" // ANSI escape code for blue
12 #define RESET_ANSI "\x1b[0m" // ANSI escape code to reset stdout's color
14 extern bool is_verbose;
15 extern bool cwd_changed;
17 class CLIInputs
19 public:
20 /*!
21 * \brief Constructor for CLIInputs.
22 * \param argc Command-line argument count.
23 * \param argv Array of strings that representing the command-line argument given.
25 CLIInputs(int argc, char ** argv);
28 class Prompt
30 string last_dir;
31 vector<string> tokens;
32 public:
33 void get_last_dir();
34 void print();
35 short int run();
36 void parse(string input);
37 Prompt();
40 #endif // INPUT_H