5 #include <csignal> // struct sigaction, sigaction, SIGINT, SIGHUP
6 #include <iostream> // std::cin, std::cout, printf, fprintf
7 extern bool exit_program
;
13 * \class SignalHandler
14 * \brief Handles SIGHUP and SIGINT signals.
18 struct sigaction signal_action
;
21 * \brief Constructor for SignalHandler. Handles SIGHUP and SIGINT signals.
29 vector
<vector
<string
>> history
;
31 string username
; // Username
32 string hostname
; // User's hostname
33 string cwd
; // Current working directory
35 void change_dir(vector
<string
>);
37 short simple_command(vector
<string
>);
38 short piped_command (vector
<string
>, int);