aboutsummaryrefslogtreecommitdiffstats
path: root/bruiser/bruiser.h
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2017-05-07 15:44:05 +0000
committerbloodstalker <thabogre@gmail.com>2017-05-07 15:44:05 +0000
commit5dbd27941858c9de228eb8d45e3367bd6dd02fb0 (patch)
treed7859409e573fb1dd73a53432ab14913887e3007 /bruiser/bruiser.h
parentadded a list feature (diff)
downloadmutator-5dbd27941858c9de228eb8d45e3367bd6dd02fb0.tar.gz
mutator-5dbd27941858c9de228eb8d45e3367bd6dd02fb0.zip
added a bunch a things
Diffstat (limited to '')
-rw-r--r--bruiser/bruiser.h24
1 files changed, 21 insertions, 3 deletions
diff --git a/bruiser/bruiser.h b/bruiser/bruiser.h
index cdb5141..1f1a3f9 100644
--- a/bruiser/bruiser.h
+++ b/bruiser/bruiser.h
@@ -62,6 +62,23 @@ namespace bruiser
#define YELLOW "\033[1;33m"
#define NORMAL "\033[0m"
#define CLEAR "\033[2J"
+
+#define SHELL_HISTORY_SIZE 100
+
+#define NOT_IMPLEMENTED \
+ do{\
+ std::cout << BROWN << "not implemented yet\n" << NORMAL;\
+ }while(0)
+
+#define PRINT_WITH_COLOR(X,Y) \
+ do{\
+ std::cout << X << Y << NORMAL;\
+ }while(0)
+
+#define PRINT_WITH_COLOR_LB(X,Y) \
+ do{\
+ std::cout << X << Y << "\n" << NORMAL;\
+ }while(0)
/**********************************************************************************************************************/
/*Error Codes*/
#define M0_ERROR_CODES \
@@ -81,7 +98,7 @@ struct help
std::string retval;
};
-help CMDHelp[] ={
+help CMDHelp[] = {
{"help", "", "display general help", "", ""},
{"quit", "", "quit bruiser", "", ""},
{"exit", "", "quit bruiser", "", ""},
@@ -90,7 +107,8 @@ help CMDHelp[] ={
{"clear", "", "clears the terminal", "", ""},
{"shell", "", "opens up a bash shell inside bruiser", "", ""},
{"history", "", "prints bruiser's history", "", ""},
- {"!", "", "prints the command from history", "", ""}
+ {"!", "", "prints the command from history", "", ""},
+ {"list", "list functions", "lists the names of all available types", "", ""}
};
/**********************************************************************************************************************/
/**
@@ -205,7 +223,7 @@ class ShellHistory
{
public:
ShellHistory() {}
- boost::circular_buffer<std::string> History{100};
+ boost::circular_buffer<std::string> History{SHELL_HISTORY_SIZE};
};
/**********************************************************************************************************************/
class Daemonize