mirror of
https://github.com/irssi/irssi.git
synced 2026-08-14 14:12:11 +02:00
Configurable statusbar - see default config file (irssi.conf) for example
how to configure it. Added %> format which clears to end of line using the current bg color. Added support for multiple input lines (just the core, not used anywhere yet). git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1821 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
b32a9a9585
commit
dbe49236d2
20 changed files with 1643 additions and 1118 deletions
|
|
@ -97,11 +97,8 @@ static void get_colors(int flags, int *fg, int *bg)
|
|||
current_theme->default_real_color;
|
||||
}
|
||||
|
||||
if (flags & GUI_PRINT_FLAG_REVERSE) {
|
||||
int tmp;
|
||||
|
||||
tmp = *fg; *fg = *bg; *bg = tmp;
|
||||
}
|
||||
if (flags & GUI_PRINT_FLAG_REVERSE)
|
||||
*fg |= ATTR_REVERSE;
|
||||
|
||||
if (*fg == 8) *fg |= ATTR_COLOR8;
|
||||
if (flags & GUI_PRINT_FLAG_BOLD) {
|
||||
|
|
@ -180,8 +177,13 @@ static void sig_gui_print_text(WINDOW_REC *window, void *fgcolor,
|
|||
g_return_if_fail(next_xpos != -1);
|
||||
|
||||
screen_move(screen_root, next_xpos, next_ypos);
|
||||
if (flags & GUI_PRINT_FLAG_CLRTOEOL) {
|
||||
screen_set_bg(screen_root, fg | (bg << 4));
|
||||
screen_clrtoeol(screen_root);
|
||||
screen_set_bg(screen_root, 0);
|
||||
}
|
||||
screen_set_color(screen_root, fg | (bg << 4));
|
||||
screen_addstr(screen_root, str);
|
||||
screen_addstr(screen_root, str);
|
||||
next_xpos += strlen(str);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue