diff options
-rw-r--r-- | src/gui/curses/gui-curses-bar-window.c | 6 | ||||
-rw-r--r-- | src/gui/curses/gui-curses-chat.c | 14 | ||||
-rw-r--r-- | src/gui/curses/gui-curses-main.c | 12 |
3 files changed, 16 insertions, 16 deletions
diff --git a/src/gui/curses/gui-curses-bar-window.c b/src/gui/curses/gui-curses-bar-window.c index 9176e8c8b..2836c15d3 100644 --- a/src/gui/curses/gui-curses-bar-window.c +++ b/src/gui/curses/gui-curses-bar-window.c @@ -361,7 +361,7 @@ gui_bar_window_print_string (struct t_gui_bar_window *bar_window, output = string_iconv_from_internal (NULL, utf_char); if (low_char) wattron (GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar, A_REVERSE); - wprintw (GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar, "%s", + waddstr (GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar, (output) ? output : utf_char); if (low_char) wattroff (GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar, A_REVERSE); @@ -683,7 +683,7 @@ gui_bar_window_draw (struct t_gui_bar_window *bar_window, gui_window_set_custom_color_fg_bg (GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar, CONFIG_COLOR(config_color_bar_more), CONFIG_COLOR(bar_window->bar->options[GUI_BAR_OPTION_COLOR_BG])); - mvwprintw (GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar, + mvwaddstr (GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar, y, x, ptr_string); } } @@ -702,7 +702,7 @@ gui_bar_window_draw (struct t_gui_bar_window *bar_window, gui_window_set_custom_color_fg_bg (GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar, CONFIG_COLOR(config_color_bar_more), CONFIG_COLOR(bar_window->bar->options[GUI_BAR_OPTION_COLOR_BG])); - mvwprintw (GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar, + mvwaddstr (GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar, y, x, ptr_string); } } diff --git a/src/gui/curses/gui-curses-chat.c b/src/gui/curses/gui-curses-chat.c index 7bc653c2a..0a20b1fb5 100644 --- a/src/gui/curses/gui-curses-chat.c +++ b/src/gui/curses/gui-curses-chat.c @@ -198,9 +198,9 @@ gui_chat_display_horizontal_line (struct t_gui_window *window, int simulate) x = 0; while (x < gui_chat_get_real_width (window)) { - mvwprintw (GUI_WINDOW_OBJECTS(window)->win_chat, + mvwaddstr (GUI_WINDOW_OBJECTS(window)->win_chat, window->win_chat_cursor_y, x, - "%s", read_marker_string); + read_marker_string); x += size_on_screen; } } @@ -405,8 +405,8 @@ gui_chat_display_word_raw (struct t_gui_window *window, struct t_gui_line *line, if (!simulate) { output = string_iconv_from_internal (NULL, utf_char); - wprintw (GUI_WINDOW_OBJECTS(window)->win_chat, - "%s", (output) ? output : utf_char); + waddstr (GUI_WINDOW_OBJECTS(window)->win_chat, + (output) ? output : utf_char); if (output) free (output); @@ -1477,7 +1477,7 @@ gui_chat_display_line (struct t_gui_window *window, struct t_gui_line *line, { gui_window_set_weechat_color (GUI_WINDOW_OBJECTS(window)->win_chat, GUI_COLOR_CHAT_TEXT_FOUND); - mvwprintw (GUI_WINDOW_OBJECTS(window)->win_chat, + mvwaddstr (GUI_WINDOW_OBJECTS(window)->win_chat, read_marker_y, read_marker_x, "*"); } @@ -1491,7 +1491,7 @@ gui_chat_display_line (struct t_gui_window *window, struct t_gui_line *line, { gui_window_set_weechat_color (GUI_WINDOW_OBJECTS(window)->win_chat, GUI_COLOR_CHAT_READ_MARKER); - mvwprintw (GUI_WINDOW_OBJECTS(window)->win_chat, + mvwaddstr (GUI_WINDOW_OBJECTS(window)->win_chat, read_marker_y, read_marker_x, "*"); } @@ -1852,7 +1852,7 @@ gui_chat_draw (struct t_gui_buffer *buffer, int clear_chat) case GUI_BUFFER_TYPE_FORMATTED: /* min 2 lines for chat area */ if (ptr_win->win_chat_height < 2) - mvwprintw (GUI_WINDOW_OBJECTS(ptr_win)->win_chat, 0, 0, "..."); + mvwaddstr (GUI_WINDOW_OBJECTS(ptr_win)->win_chat, 0, 0, "..."); else gui_chat_draw_formatted_buffer (ptr_win); break; diff --git a/src/gui/curses/gui-curses-main.c b/src/gui/curses/gui-curses-main.c index 5377d88eb..45563b054 100644 --- a/src/gui/curses/gui-curses-main.c +++ b/src/gui/curses/gui-curses-main.c @@ -84,10 +84,10 @@ gui_main_get_password (const char *prompt1, const char *prompt2, clear(); - mvprintw (0, 0, "%s", prompt1); - mvprintw (1, 0, "%s", prompt2); - mvprintw (2, 0, "%s", prompt3); - mvprintw (3, 0, "=> "); + mvaddstr (0, 0, prompt1); + mvaddstr (1, 0, prompt2); + mvaddstr (2, 0, prompt3); + mvaddstr (3, 0, "=> "); refresh (); memset (password, '\0', size); @@ -103,14 +103,14 @@ gui_main_get_password (const char *prompt1, const char *prompt2, { i--; password[i] = '\0'; - mvprintw (3, 3 + i, " "); + mvaddstr (3, 3 + i, " "); move (3, 3 + i); } } else { password[i] = ch; - mvprintw (3, 3 + i, "*"); + mvaddstr (3, 3 + i, "*"); i++; } refresh (); |