summaryrefslogtreecommitdiff
path: root/testing/toxic/prompt.c
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-07-31 11:23:13 -0700
committerirungentoo <irungentoo@gmail.com>2013-07-31 11:23:13 -0700
commit639d1faa5d750d3ed0e23905c7c1c4808e44d269 (patch)
tree9444db72cbe75d9e5197745341015d17cbcfccf0 /testing/toxic/prompt.c
parent3c177d6a835b7849cc6a0827a5f7269f10dd4ba9 (diff)
parent0815d1110d452f174bc523c11291b8da41e01d4a (diff)
Merge pull request #215 from plutooo/master
toxic: Made everything 1000x more userfriendly.
Diffstat (limited to 'testing/toxic/prompt.c')
-rw-r--r--testing/toxic/prompt.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/testing/toxic/prompt.c b/testing/toxic/prompt.c
index bdfcb880..62470a23 100644
--- a/testing/toxic/prompt.c
+++ b/testing/toxic/prompt.c
@@ -42,7 +42,7 @@ static int prompt_buf_pos=0;
42 42
43static void execute(ToxWindow* self, char* cmd) { 43static void execute(ToxWindow* self, char* cmd) {
44 44
45 if(!strcmp(cmd, "quit") || !strcmp(cmd, "exit")) { 45 if(!strcmp(cmd, "quit") || !strcmp(cmd, "exit") || !strcmp(cmd, "q")) {
46 endwin(); 46 endwin();
47 exit(0); 47 exit(0);
48 } 48 }
@@ -282,12 +282,11 @@ static void prompt_onDraw(ToxWindow* self) {
282 282
283static void print_usage(ToxWindow* self) { 283static void print_usage(ToxWindow* self) {
284 wattron(self->window, COLOR_PAIR(2) | A_BOLD); 284 wattron(self->window, COLOR_PAIR(2) | A_BOLD);
285 wprintw(self->window, "Usage:\n"); 285 wprintw(self->window, "Commands:\n");
286 wattroff(self->window, A_BOLD); 286 wattroff(self->window, A_BOLD);
287 287
288 wprintw(self->window, " connect <ip> <port> <key> : Connect to DHT server\n"); 288 wprintw(self->window, " connect <ip> <port> <key> : Connect to DHT server\n");
289 wprintw(self->window, " add <id> <message> : Add friend\n"); 289 wprintw(self->window, " add <id> <message> : Add friend\n");
290 wprintw(self->window, " msg <number> <message> : Send message\n");
291 wprintw(self->window, " status <message> : Set your status\n"); 290 wprintw(self->window, " status <message> : Set your status\n");
292 wprintw(self->window, " nick <nickname> : Set your nickname\n"); 291 wprintw(self->window, " nick <nickname> : Set your nickname\n");
293 wprintw(self->window, " accept <number> : Accept friend request\n"); 292 wprintw(self->window, " accept <number> : Accept friend request\n");
@@ -296,7 +295,7 @@ static void print_usage(ToxWindow* self) {
296 295
297 296
298 wattron(self->window, A_BOLD); 297 wattron(self->window, A_BOLD);
299 wprintw(self->window, "Use the TAB key to navigate through the tabs.\n"); 298 wprintw(self->window, "TIP: Use the TAB key to navigate through the tabs.\n\n");
300 wattroff(self->window, A_BOLD); 299 wattroff(self->window, A_BOLD);
301 300
302 wattroff(self->window, COLOR_PAIR(2)); 301 wattroff(self->window, COLOR_PAIR(2));