summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2013-11-17 20:49:37 +0100
committerSebastien Helleu <flashcode@flashtux.org>2013-11-17 20:49:37 +0100
commit8d64b658dfb2d8af23ada1a09085eaeea839a912 (patch)
tree93e7097baea628212a796c903a4be21817ba9ae2 /src/gui
parente0890b376c05446fe54af36b8685847a1d5d1d37 (diff)
downloadweechat-8d64b658dfb2d8af23ada1a09085eaeea839a912.zip
core: add option "libs" for command /debug, add signal "debug_libs"
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/curses/gui-curses-main.c11
-rw-r--r--src/gui/gui-main.h1
2 files changed, 12 insertions, 0 deletions
diff --git a/src/gui/curses/gui-curses-main.c b/src/gui/curses/gui-curses-main.c
index b7358914c..489cb4d1f 100644
--- a/src/gui/curses/gui-curses-main.c
+++ b/src/gui/curses/gui-curses-main.c
@@ -298,6 +298,17 @@ gui_main_signal_sigwinch ()
}
/*
+ * Displays infos about ncurses lib.
+ */
+
+void
+gui_main_debug_libs ()
+{
+ gui_chat_printf (NULL, " ncurses: v%s (patch %d)",
+ NCURSES_VERSION, NCURSES_VERSION_PATCH);
+}
+
+/*
* Refreshs for windows, buffers, bars.
*/
diff --git a/src/gui/gui-main.h b/src/gui/gui-main.h
index cf3b5d4af..a5e07cefe 100644
--- a/src/gui/gui-main.h
+++ b/src/gui/gui-main.h
@@ -25,6 +25,7 @@
extern void gui_main_get_password (const char *prompt1, const char *prompt2,
const char *prompt3,
char *password, int size);
+extern void gui_main_debug_libs ();
extern void gui_main_loop ();
extern void gui_main_pre_init (int *argc, char **argv[]);
extern void gui_main_init ();