1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-01 23:36:37 +02:00

core: display the welcome message immediately after the startup message, move source code to weechat.c

This commit is contained in:
Sébastien Helleu
2015-04-25 08:38:44 +02:00
parent 0afd1f2243
commit 6c4c4a37fd
14 changed files with 302 additions and 323 deletions
-30
View File
@@ -228,32 +228,6 @@ gui_main_init ()
gui_window_set_bracketed_paste_mode (CONFIG_BOOLEAN(config_look_paste_bracketed));
}
/*
* Displays a message on first WeeChat run (when weechat.conf is created).
*/
void
gui_main_welcome_message ()
{
gui_chat_printf (
NULL,
_("\n"
"Welcome to WeeChat!\n"
"\n"
"If you are discovering WeeChat, it is recommended to read at least "
"the quickstart guide, and the user's guide if you have some time; "
"they explain main WeeChat concepts.\n"
"All WeeChat docs are available at: https://weechat.org/doc\n"
"\n"
"Moreover, there is inline help with /help on all commands and "
"options (use Tab key to complete the name).\n"
"The command /iset (script iset.pl) can help to customize WeeChat: "
"/script install iset.pl\n"
"\n"
"You can create and connect to an IRC server with /server and "
"/connect commands (see /help server)."));
}
/*
* Callback for system signal SIGWINCH: refreshes screen.
*/
@@ -401,10 +375,6 @@ gui_main_loop ()
int max_fd;
int ready;
/* message on first run of WeeChat */
if (weechat_first_start)
gui_main_welcome_message ();
/* catch SIGWINCH signal: redraw screen */
util_catch_signal (SIGWINCH, &gui_main_signal_sigwinch);