36 lines
667 B
C
36 lines
667 B
C
|
#ifndef CONSOLE_H
|
||
|
#define CONSOLE_H
|
||
|
|
||
|
#include <sys/wait.h>
|
||
|
#include <unistd.h>
|
||
|
#include <cstdlib>
|
||
|
#include <sstream>
|
||
|
#include <cstdio>
|
||
|
#include <string>
|
||
|
#include <cstring>
|
||
|
#include <vector>
|
||
|
#include <iostream>
|
||
|
#include <csignal>
|
||
|
#include <commands.h>
|
||
|
using std::cin;
|
||
|
using std::cout;
|
||
|
using std::cerr;
|
||
|
using std::string;
|
||
|
using std::vector;
|
||
|
using std::istringstream;
|
||
|
|
||
|
|
||
|
namespace Console{
|
||
|
extern Commands cmds;
|
||
|
|
||
|
class IsUndoingLineException {};
|
||
|
|
||
|
int launch(vector<string>* args);
|
||
|
int execute(vector<string>* args);
|
||
|
void mshEofHandler(int);
|
||
|
string* read_line();
|
||
|
vector<string>* split_line(string* line);
|
||
|
void loop();
|
||
|
}
|
||
|
#endif // CONSOLE_H
|