mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +02:00
Replaced all direct curses calls with screen_xx() wrappers. This should
enable us to optionally use termcap directly. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1535 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
6f5c1117de
commit
05777636a7
13 changed files with 238 additions and 132 deletions
|
|
@ -165,9 +165,9 @@ static void sig_gui_print_text(WINDOW_REC *window, void *fgcolor,
|
|||
if (window == NULL) {
|
||||
g_return_if_fail(next_xpos != -1);
|
||||
|
||||
wmove(stdscr, next_ypos, next_xpos);
|
||||
set_color(stdscr, fg | (bg << 4));
|
||||
addstr(str);
|
||||
screen_move(screen_root, next_xpos, next_ypos);
|
||||
screen_set_color(screen_root, fg | (bg << 4));
|
||||
screen_addstr(screen_root, str);
|
||||
next_xpos += strlen(str);
|
||||
return;
|
||||
}
|
||||
|
|
@ -258,7 +258,6 @@ void gui_printtext_init(void)
|
|||
signal_add("print text finished", (SIGNAL_FUNC) sig_printtext_finished);
|
||||
signal_add("print format", (SIGNAL_FUNC) sig_print_format);
|
||||
signal_add("setup changed", (SIGNAL_FUNC) read_settings);
|
||||
signal_add("beep", (SIGNAL_FUNC) beep);
|
||||
|
||||
read_settings();
|
||||
}
|
||||
|
|
@ -271,5 +270,4 @@ void gui_printtext_deinit(void)
|
|||
signal_remove("print text finished", (SIGNAL_FUNC) sig_printtext_finished);
|
||||
signal_remove("print format", (SIGNAL_FUNC) sig_print_format);
|
||||
signal_remove("setup changed", (SIGNAL_FUNC) read_settings);
|
||||
signal_remove("beep", (SIGNAL_FUNC) beep);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue