summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/curses/gui-curses-main.c8
-rw-r--r--src/gui/curses/gui-curses-window.c15
-rw-r--r--src/gui/gtk/gui-gtk-window.c10
-rw-r--r--src/gui/gui-window.h1
4 files changed, 26 insertions, 8 deletions
diff --git a/src/gui/curses/gui-curses-main.c b/src/gui/curses/gui-curses-main.c
index bc2bfd4c3..2f0822d7b 100644
--- a/src/gui/curses/gui-curses-main.c
+++ b/src/gui/curses/gui-curses-main.c
@@ -155,14 +155,6 @@ gui_main_init ()
gui_bar_window_create_win (ptr_bar_win);
}
}
-
- /* display infos about terminal and colors */
- if (weechat_debug_core >= 1)
- {
- gui_chat_printf (NULL,
- _("TERM=\"%s\", %d colors available, %d pairs"),
- getenv ("TERM"), COLORS, COLOR_PAIRS);
- }
}
/*
diff --git a/src/gui/curses/gui-curses-window.c b/src/gui/curses/gui-curses-window.c
index eaee0d7b7..35ed5f474 100644
--- a/src/gui/curses/gui-curses-window.c
+++ b/src/gui/curses/gui-curses-window.c
@@ -1485,6 +1485,21 @@ gui_window_set_title (const char *title)
}
/*
+ * gui_window_term_display_infos: display some infos about terminal and colors
+ */
+
+void
+gui_window_term_display_infos ()
+{
+ gui_chat_printf (NULL, "");
+ gui_chat_printf (NULL, _("Terminal infos:"));
+ gui_chat_printf (NULL, _(" TERM='%s', size: %dx%d"),
+ getenv("TERM"), gui_term_cols, gui_term_lines);
+ gui_chat_printf (NULL, _(" %d colors available, %d pairs"),
+ COLORS, COLOR_PAIRS);
+}
+
+/*
* gui_window_objects_print_log: print window Curses objects infos in log
* (usually for crash dump)
*/
diff --git a/src/gui/gtk/gui-gtk-window.c b/src/gui/gtk/gui-gtk-window.c
index 2d64dddfe..f0f9b9a3a 100644
--- a/src/gui/gtk/gui-gtk-window.c
+++ b/src/gui/gtk/gui-gtk-window.c
@@ -802,6 +802,16 @@ gui_window_set_title (const char *title)
}
/*
+ * gui_window_term_display_infos: display some infos about terminal and colors
+ */
+
+void
+gui_window_term_display_infos ()
+{
+ /* No term info for Gtk */
+}
+
+/*
* gui_window_objects_print_log: print Gtk objects infos in log
* (usually for crash dump)
*/
diff --git a/src/gui/gui-window.h b/src/gui/gui-window.h
index 2c0afd74d..f78a642ca 100644
--- a/src/gui/gui-window.h
+++ b/src/gui/gui-window.h
@@ -172,6 +172,7 @@ extern void gui_window_switch_left (struct t_gui_window *window);
extern void gui_window_switch_right (struct t_gui_window *window);
extern void gui_window_refresh_screen (int full_refresh);
extern void gui_window_set_title (const char *title);
+extern void gui_window_term_display_infos ();
extern void gui_window_objects_print_log (struct t_gui_window *window);
#endif /* gui-window.h */