diff options
-rw-r--r-- | testing/toxic/prompt.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/testing/toxic/prompt.c b/testing/toxic/prompt.c index 3006b8a6..a53c163f 100644 --- a/testing/toxic/prompt.c +++ b/testing/toxic/prompt.c | |||
@@ -43,8 +43,8 @@ static int prompt_buf_pos=0; | |||
43 | 43 | ||
44 | static void execute(ToxWindow* self, char* u_cmd) { | 44 | static void execute(ToxWindow* self, char* u_cmd) { |
45 | int i; | 45 | int i; |
46 | int newlines = 0; | 46 | int newlines = 0; |
47 | char cmd[256] = {0}; | 47 | char cmd[256] = {0}; |
48 | for(i = 0; i < strlen(prompt_buf); i++) | 48 | for(i = 0; i < strlen(prompt_buf); i++) |
49 | { | 49 | { |
50 | if (u_cmd[i] == '\n') | 50 | if (u_cmd[i] == '\n') |
@@ -331,15 +331,15 @@ static void print_usage(ToxWindow* self) { | |||
331 | wprintw(self->window, "Commands:\n"); | 331 | wprintw(self->window, "Commands:\n"); |
332 | wattroff(self->window, A_BOLD); | 332 | wattroff(self->window, A_BOLD); |
333 | 333 | ||
334 | wprintw(self->window, " connect <ip> <port> <key> : Connect to DHT server\n"); | 334 | wprintw(self->window, " connect <ip> <port> <key> : Connect to DHT server\n"); |
335 | wprintw(self->window, " add <id> <message> : Add friend\n"); | 335 | wprintw(self->window, " add <id> <message> : Add friend\n"); |
336 | wprintw(self->window, " status <message> : Set your status\n"); | 336 | wprintw(self->window, " status <message> : Set your status\n"); |
337 | wprintw(self->window, " nick <nickname> : Set your nickname\n"); | 337 | wprintw(self->window, " nick <nickname> : Set your nickname\n"); |
338 | wprintw(self->window, " accept <number> : Accept friend request\n"); | 338 | wprintw(self->window, " accept <number> : Accept friend request\n"); |
339 | wprintw(self->window, " myid : Print your ID\n"); | 339 | wprintw(self->window, " myid : Print your ID\n"); |
340 | wprintw(self->window, " quit/exit : Exit program\n"); | 340 | wprintw(self->window, " quit/exit : Exit program\n"); |
341 | wprintw(self->window, " help : Print this message again\n"); | 341 | wprintw(self->window, " help : Print this message again\n"); |
342 | wprintw(self->window, " clear : Clear this window\n"); | 342 | wprintw(self->window, " clear : Clear this window\n"); |
343 | 343 | ||
344 | wattron(self->window, A_BOLD); | 344 | wattron(self->window, A_BOLD); |
345 | wprintw(self->window, "TIP: Use the TAB key to navigate through the tabs.\n\n"); | 345 | wprintw(self->window, "TIP: Use the TAB key to navigate through the tabs.\n\n"); |