mirror of
https://github.com/Tha14/toxic.git
synced 2025-12-15 07:16:34 +01:00
Added sound notifications and prepared for later system notifications. Also, now using libconfig for configuration loading.
This commit is contained in:
16
src/help.c
16
src/help.c
@@ -131,7 +131,7 @@ static void help_draw_global(ToxWindow *self)
|
||||
wprintw(win, "Global Commands:\n");
|
||||
wattroff(win, A_BOLD | COLOR_PAIR(RED));
|
||||
|
||||
wprintw(win, " /add <id> <msg> : Add friend with optional message\n");
|
||||
wprintw(win, " /add <id> <msg> : Add contact with optional message\n");
|
||||
wprintw(win, " /accept <n> : Accept friend request\n");
|
||||
wprintw(win, " /connect <ip> <port> <key> : Manually connect to a DHT node\n");
|
||||
wprintw(win, " /status <type> <msg> : Set status with optional note\n");
|
||||
@@ -144,14 +144,14 @@ static void help_draw_global(ToxWindow *self)
|
||||
wprintw(win, " /close : Close the current chat window\n");
|
||||
wprintw(win, " /quit or /exit : Exit Toxic\n");
|
||||
|
||||
#ifdef _SUPPORT_AUDIO
|
||||
#ifdef _AUDIO
|
||||
wattron(win, A_BOLD);
|
||||
wprintw(win, "\n Audio:\n");
|
||||
wattroff(win, A_BOLD);
|
||||
|
||||
wprintw(win, " /lsdev <type> : List devices where type: in|out\n");
|
||||
wprintw(win, " /sdev <type> <id> : Set active device\n");
|
||||
#endif /* _SUPPORT_AUDIO */
|
||||
#endif /* _AUDIO */
|
||||
|
||||
help_draw_bottom_menu(win);
|
||||
|
||||
@@ -169,12 +169,12 @@ static void help_draw_chat(ToxWindow *self)
|
||||
wprintw(win, "Chat Commands:\n");
|
||||
wattroff(win, A_BOLD | COLOR_PAIR(RED));
|
||||
|
||||
wprintw(win, " /invite <n> : Invite friend to a group chat\n");
|
||||
wprintw(win, " /invite <n> : Invite contact to a group chat\n");
|
||||
wprintw(win, " /join : Join a pending group chat\n");
|
||||
wprintw(win, " /sendfile <path> : Send a file\n");
|
||||
wprintw(win, " /savefile <n> : Receive a file\n");
|
||||
|
||||
#ifdef _SUPPORT_AUDIO
|
||||
#ifdef _AUDIO
|
||||
wattron(win, A_BOLD);
|
||||
wprintw(win, "\n Audio:\n");
|
||||
wattroff(win, A_BOLD);
|
||||
@@ -187,7 +187,7 @@ static void help_draw_chat(ToxWindow *self)
|
||||
wprintw(win, " /sdev <type> <id> : Change active device\n");
|
||||
wprintw(win, " /mute <type> : Mute active device if in call\n");
|
||||
wprintw(win, " /sense <n> : VAD sensitivity treshold\n");
|
||||
#endif /* _SUPPORT_AUDIO */
|
||||
#endif /* _AUDIO */
|
||||
|
||||
help_draw_bottom_menu(win);
|
||||
|
||||
@@ -226,7 +226,7 @@ void help_onKey(ToxWindow *self, wint_t key)
|
||||
break;
|
||||
|
||||
case 'c':
|
||||
#ifdef _SUPPORT_AUDIO
|
||||
#ifdef _AUDIO
|
||||
help_init_window(self, 19, 80);
|
||||
#else
|
||||
help_init_window(self, 9, 80);
|
||||
@@ -235,7 +235,7 @@ void help_onKey(ToxWindow *self, wint_t key)
|
||||
break;
|
||||
|
||||
case 'g':
|
||||
#ifdef _SUPPORT_AUDIO
|
||||
#ifdef _AUDIO
|
||||
help_init_window(self, 21, 80);
|
||||
#else
|
||||
help_init_window(self, 17, 80);
|
||||
|
||||
Reference in New Issue
Block a user