diff options
author | irungentoo <irungentoo@gmail.com> | 2013-08-05 10:46:59 -0700 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-08-05 10:46:59 -0700 |
commit | dcb10c0264386af118ec3292ff2f33a82e0dde3e (patch) | |
tree | 5275daa49e496ad25ef17e613d0fec7a0011ecd0 | |
parent | dc3fe775fca468ace65165fa1178b8d35397e20a (diff) | |
parent | 39545a92dab828d2342c5e4160f30da320d81748 (diff) |
Merge pull request #338 from Nominate/patch-1
Added a 'clear' function to the prompt
-rw-r--r-- | testing/toxic/prompt.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/testing/toxic/prompt.c b/testing/toxic/prompt.c index 463b9352..c28980c4 100644 --- a/testing/toxic/prompt.c +++ b/testing/toxic/prompt.c | |||
@@ -158,7 +158,9 @@ static void execute(ToxWindow* self, char* cmd) { | |||
158 | break; | 158 | break; |
159 | } | 159 | } |
160 | } | 160 | } |
161 | 161 | else if(!strcmp(cmd, "clear")) { | |
162 | wclear(self->window); | ||
163 | } | ||
162 | else if(!strcmp(cmd, "help")) { | 164 | else if(!strcmp(cmd, "help")) { |
163 | print_usage(self); | 165 | print_usage(self); |
164 | } | 166 | } |
@@ -316,7 +318,7 @@ static void print_usage(ToxWindow* self) { | |||
316 | wprintw(self->window, " myid : Print your ID\n"); | 318 | wprintw(self->window, " myid : Print your ID\n"); |
317 | wprintw(self->window, " quit/exit : Exit program\n"); | 319 | wprintw(self->window, " quit/exit : Exit program\n"); |
318 | wprintw(self->window, " help : Print this message again\n"); | 320 | wprintw(self->window, " help : Print this message again\n"); |
319 | 321 | wprintw(self->window, " clear: : Clear this window\n"); | |
320 | 322 | ||
321 | wattron(self->window, A_BOLD); | 323 | wattron(self->window, A_BOLD); |
322 | wprintw(self->window, "TIP: Use the TAB key to navigate through the tabs.\n\n"); | 324 | wprintw(self->window, "TIP: Use the TAB key to navigate through the tabs.\n\n"); |