/* * Copyright (c) 2003-2006 by FlashCode * See README for License detail, AUTHORS for developers list. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef __WEECHAT_GUI_CURSES_H #define __WEECHAT_GUI_CURSES_H 1 /* shift ncurses colors for compatibility with colors in IRC messages (same as other IRC clients) */ #define WEECHAT_COLOR_BLACK COLOR_BLACK #define WEECHAT_COLOR_RED COLOR_BLUE #define WEECHAT_COLOR_GREEN COLOR_GREEN #define WEECHAT_COLOR_YELLOW COLOR_CYAN #define WEECHAT_COLOR_BLUE COLOR_RED #define WEECHAT_COLOR_MAGENTA COLOR_MAGENTA #define WEECHAT_COLOR_CYAN COLOR_YELLOW #define WEECHAT_COLOR_WHITE COLOR_WHITE extern t_gui_color gui_weechat_colors[]; extern int gui_irc_colors[GUI_NUM_IRC_COLORS][2]; /* color functions */ extern int gui_color_get_pair (int); extern void gui_color_init (); /* chat functions */ extern void gui_chat_calculate_line_diff (t_gui_window *, t_gui_line **, int *, int); /* keyboard functions */ extern void gui_keyboard_default_bindings (); extern void gui_keyboard_read (); /* window functions */ extern void gui_window_curses_clear (WINDOW *, int); extern void gui_window_set_weechat_color (WINDOW *, int); extern void gui_window_refresh_screen_sigwinch (); extern void gui_window_set_title (); extern void gui_window_reset_title (); #endif /* gui-curses.h */