1269 |
COLOR_WIN_STATUS_DELIMITERS); |
COLOR_WIN_STATUS_DELIMITERS); |
1270 |
wprintw (ptr_win->win_status, ":"); |
wprintw (ptr_win->win_status, ":"); |
1271 |
gui_window_set_color (ptr_win->win_status, |
gui_window_set_color (ptr_win->win_status, |
1272 |
COLOR_WIN_STATUS); |
COLOR_WIN_STATUS_CHANNEL); |
1273 |
if (SERVER(ptr_win->buffer)->is_connected) |
if (SERVER(ptr_win->buffer)->is_connected) |
1274 |
wprintw (ptr_win->win_status, "[%s] ", |
wprintw (ptr_win->win_status, "[%s] ", |
1275 |
SERVER(ptr_win->buffer)->name); |
SERVER(ptr_win->buffer)->name); |
1287 |
COLOR_WIN_STATUS_DELIMITERS); |
COLOR_WIN_STATUS_DELIMITERS); |
1288 |
wprintw (ptr_win->win_status, ":"); |
wprintw (ptr_win->win_status, ":"); |
1289 |
gui_window_set_color (ptr_win->win_status, |
gui_window_set_color (ptr_win->win_status, |
1290 |
COLOR_WIN_STATUS); |
COLOR_WIN_STATUS_CHANNEL); |
1291 |
if ((!CHANNEL(ptr_win->buffer)->nicks) |
if ((!CHANNEL(ptr_win->buffer)->nicks) |
1292 |
&& (CHANNEL(ptr_win->buffer)->type != CHAT_PRIVATE)) |
&& (CHANNEL(ptr_win->buffer)->type != CHAT_PRIVATE)) |
1293 |
wprintw (ptr_win->win_status, "(%s)", |
wprintw (ptr_win->win_status, "(%s)", |
1342 |
COLOR_WIN_STATUS_DELIMITERS); |
COLOR_WIN_STATUS_DELIMITERS); |
1343 |
wprintw (ptr_win->win_status, "("); |
wprintw (ptr_win->win_status, "("); |
1344 |
gui_window_set_color (ptr_win->win_status, |
gui_window_set_color (ptr_win->win_status, |
1345 |
COLOR_WIN_STATUS); |
COLOR_WIN_STATUS_CHANNEL); |
1346 |
wprintw (ptr_win->win_status, "DCC"); |
wprintw (ptr_win->win_status, "DCC"); |
1347 |
gui_window_set_color (ptr_win->win_status, |
gui_window_set_color (ptr_win->win_status, |
1348 |
COLOR_WIN_STATUS_DELIMITERS); |
COLOR_WIN_STATUS_DELIMITERS); |
1360 |
ptr_win->buffer->number); |
ptr_win->buffer->number); |
1361 |
gui_window_set_color (ptr_win->win_status, COLOR_WIN_STATUS_DELIMITERS); |
gui_window_set_color (ptr_win->win_status, COLOR_WIN_STATUS_DELIMITERS); |
1362 |
wprintw (ptr_win->win_status, ":"); |
wprintw (ptr_win->win_status, ":"); |
1363 |
gui_window_set_color (ptr_win->win_status, COLOR_WIN_STATUS); |
gui_window_set_color (ptr_win->win_status, COLOR_WIN_STATUS_CHANNEL); |
1364 |
if (ptr_win->buffer->dcc) |
if (ptr_win->buffer->dcc) |
1365 |
wprintw (ptr_win->win_status, "<DCC> "); |
wprintw (ptr_win->win_status, "<DCC> "); |
1366 |
else |
else |
1740 |
} |
} |
1741 |
if (CHANNEL(buffer)) |
if (CHANNEL(buffer)) |
1742 |
{ |
{ |
1743 |
snprintf (format, 32, "%%s %%s> %%-%ds", input_width); |
gui_window_set_color (ptr_win->win_input, COLOR_WIN_INPUT_CHANNEL); |
1744 |
|
mvwprintw (ptr_win->win_input, 0, 0, "%s ", CHANNEL(buffer)->name); |
1745 |
|
gui_window_set_color (ptr_win->win_input, COLOR_WIN_INPUT_NICK); |
1746 |
|
wprintw (ptr_win->win_input, "%s", SERVER(buffer)->nick); |
1747 |
|
gui_window_set_color (ptr_win->win_input, COLOR_WIN_INPUT_DELIMITERS); |
1748 |
|
wprintw (ptr_win->win_input, "> "); |
1749 |
|
gui_window_set_color (ptr_win->win_input, COLOR_WIN_INPUT); |
1750 |
|
snprintf (format, 32, "%%-%ds", input_width); |
1751 |
if (ptr_win == gui_current_window) |
if (ptr_win == gui_current_window) |
1752 |
mvwprintw (ptr_win->win_input, 0, 0, format, |
wprintw (ptr_win->win_input, format, |
1753 |
CHANNEL(buffer)->name, |
buffer->input_buffer + buffer->input_buffer_1st_display); |
|
SERVER(buffer)->nick, |
|
|
buffer->input_buffer + buffer->input_buffer_1st_display); |
|
1754 |
else |
else |
1755 |
mvwprintw (ptr_win->win_input, 0, 0, format, |
wprintw (ptr_win->win_input, format, |
1756 |
CHANNEL(buffer)->name, |
""); |
|
SERVER(buffer)->nick, |
|
|
""); |
|
1757 |
wclrtoeol (ptr_win->win_input); |
wclrtoeol (ptr_win->win_input); |
1758 |
ptr_win->win_input_x = strlen (CHANNEL(buffer)->name) + |
ptr_win->win_input_x = strlen (CHANNEL(buffer)->name) + |
1759 |
strlen (SERVER(buffer)->nick) + 3 + |
strlen (SERVER(buffer)->nick) + 3 + |
1764 |
} |
} |
1765 |
else |
else |
1766 |
{ |
{ |
1767 |
snprintf (format, 32, "%%s> %%-%ds", input_width); |
gui_window_set_color (ptr_win->win_input, COLOR_WIN_INPUT_NICK); |
1768 |
if (SERVER(buffer) && (SERVER(buffer)->is_connected)) |
if (SERVER(buffer) && (SERVER(buffer)->is_connected)) |
1769 |
ptr_nickname = SERVER(buffer)->nick; |
ptr_nickname = SERVER(buffer)->nick; |
1770 |
else |
else |
1771 |
ptr_nickname = cfg_look_no_nickname; |
ptr_nickname = cfg_look_no_nickname; |
1772 |
|
mvwprintw (ptr_win->win_input, 0, 0, "%s", ptr_nickname); |
1773 |
|
gui_window_set_color (ptr_win->win_input, COLOR_WIN_INPUT_DELIMITERS); |
1774 |
|
wprintw (ptr_win->win_input, "> "); |
1775 |
|
gui_window_set_color (ptr_win->win_input, COLOR_WIN_INPUT); |
1776 |
|
snprintf (format, 32, "%%-%ds", input_width); |
1777 |
if (ptr_win == gui_current_window) |
if (ptr_win == gui_current_window) |
1778 |
mvwprintw (ptr_win->win_input, 0, 0, format, |
wprintw (ptr_win->win_input, format, |
1779 |
ptr_nickname, |
buffer->input_buffer + buffer->input_buffer_1st_display); |
|
buffer->input_buffer + buffer->input_buffer_1st_display); |
|
1780 |
else |
else |
1781 |
mvwprintw (ptr_win->win_input, 0, 0, format, |
wprintw (ptr_win->win_input, format, |
1782 |
ptr_nickname, |
""); |
|
""); |
|
1783 |
wclrtoeol (ptr_win->win_input); |
wclrtoeol (ptr_win->win_input); |
1784 |
ptr_win->win_input_x = strlen (ptr_nickname) + 2 + |
ptr_win->win_input_x = strlen (ptr_nickname) + 2 + |
1785 |
(buffer->input_buffer_pos - buffer->input_buffer_1st_display); |
(buffer->input_buffer_pos - buffer->input_buffer_1st_display); |
2453 |
cfg_col_status, cfg_col_status_bg); |
cfg_col_status, cfg_col_status_bg); |
2454 |
init_pair (COLOR_WIN_STATUS_DELIMITERS, |
init_pair (COLOR_WIN_STATUS_DELIMITERS, |
2455 |
cfg_col_status_delimiters, cfg_col_status_bg); |
cfg_col_status_delimiters, cfg_col_status_bg); |
2456 |
|
init_pair (COLOR_WIN_STATUS_CHANNEL, |
2457 |
|
cfg_col_status_channel, cfg_col_status_bg); |
2458 |
init_pair (COLOR_WIN_STATUS_DATA_MSG, |
init_pair (COLOR_WIN_STATUS_DATA_MSG, |
2459 |
cfg_col_status_data_msg, cfg_col_status_bg); |
cfg_col_status_data_msg, cfg_col_status_bg); |
2460 |
init_pair (COLOR_WIN_STATUS_DATA_PRIVATE, |
init_pair (COLOR_WIN_STATUS_DATA_PRIVATE, |
2477 |
cfg_col_input_channel, cfg_col_input_bg); |
cfg_col_input_channel, cfg_col_input_bg); |
2478 |
init_pair (COLOR_WIN_INPUT_NICK, |
init_pair (COLOR_WIN_INPUT_NICK, |
2479 |
cfg_col_input_nick, cfg_col_input_bg); |
cfg_col_input_nick, cfg_col_input_bg); |
2480 |
|
init_pair (COLOR_WIN_INPUT_DELIMITERS, |
2481 |
|
cfg_col_input_delimiters, cfg_col_input_bg); |
2482 |
init_pair (COLOR_WIN_NICK, |
init_pair (COLOR_WIN_NICK, |
2483 |
cfg_col_nick, cfg_col_nick_bg); |
cfg_col_nick, cfg_col_nick_bg); |
2484 |
init_pair (COLOR_WIN_NICK_AWAY, |
init_pair (COLOR_WIN_NICK_AWAY, |
2539 |
color_attr[COLOR_WIN_CHAT_HIGHLIGHT - 1] = (cfg_col_chat_highlight >= 0) ? cfg_col_chat_highlight & A_BOLD : 0; |
color_attr[COLOR_WIN_CHAT_HIGHLIGHT - 1] = (cfg_col_chat_highlight >= 0) ? cfg_col_chat_highlight & A_BOLD : 0; |
2540 |
color_attr[COLOR_WIN_STATUS - 1] = (cfg_col_status >= 0) ? cfg_col_status & A_BOLD : 0; |
color_attr[COLOR_WIN_STATUS - 1] = (cfg_col_status >= 0) ? cfg_col_status & A_BOLD : 0; |
2541 |
color_attr[COLOR_WIN_STATUS_DELIMITERS - 1] = (cfg_col_status_delimiters >= 0) ? cfg_col_status_delimiters & A_BOLD : 0; |
color_attr[COLOR_WIN_STATUS_DELIMITERS - 1] = (cfg_col_status_delimiters >= 0) ? cfg_col_status_delimiters & A_BOLD : 0; |
2542 |
|
color_attr[COLOR_WIN_STATUS_CHANNEL - 1] = (cfg_col_status_channel >= 0) ? cfg_col_status_channel & A_BOLD : 0; |
2543 |
color_attr[COLOR_WIN_STATUS_DATA_MSG - 1] = (cfg_col_status_data_msg >= 0) ? cfg_col_status_data_msg & A_BOLD : 0; |
color_attr[COLOR_WIN_STATUS_DATA_MSG - 1] = (cfg_col_status_data_msg >= 0) ? cfg_col_status_data_msg & A_BOLD : 0; |
2544 |
color_attr[COLOR_WIN_STATUS_DATA_PRIVATE - 1] = (cfg_col_status_data_private >= 0) ? cfg_col_status_data_private & A_BOLD : 0; |
color_attr[COLOR_WIN_STATUS_DATA_PRIVATE - 1] = (cfg_col_status_data_private >= 0) ? cfg_col_status_data_private & A_BOLD : 0; |
2545 |
color_attr[COLOR_WIN_STATUS_DATA_HIGHLIGHT - 1] = (cfg_col_status_data_highlight >= 0) ? cfg_col_status_data_highlight & A_BOLD : 0; |
color_attr[COLOR_WIN_STATUS_DATA_HIGHLIGHT - 1] = (cfg_col_status_data_highlight >= 0) ? cfg_col_status_data_highlight & A_BOLD : 0; |
2551 |
color_attr[COLOR_WIN_INPUT - 1] = (cfg_col_input >= 0) ? cfg_col_input & A_BOLD : 0; |
color_attr[COLOR_WIN_INPUT - 1] = (cfg_col_input >= 0) ? cfg_col_input & A_BOLD : 0; |
2552 |
color_attr[COLOR_WIN_INPUT_CHANNEL - 1] = (cfg_col_input_channel >= 0) ? cfg_col_input_channel & A_BOLD : 0; |
color_attr[COLOR_WIN_INPUT_CHANNEL - 1] = (cfg_col_input_channel >= 0) ? cfg_col_input_channel & A_BOLD : 0; |
2553 |
color_attr[COLOR_WIN_INPUT_NICK - 1] = (cfg_col_input_nick >= 0) ? cfg_col_input_nick & A_BOLD : 0; |
color_attr[COLOR_WIN_INPUT_NICK - 1] = (cfg_col_input_nick >= 0) ? cfg_col_input_nick & A_BOLD : 0; |
2554 |
|
color_attr[COLOR_WIN_INPUT_DELIMITERS - 1] = (cfg_col_input_delimiters >= 0) ? cfg_col_input_delimiters & A_BOLD : 0; |
2555 |
color_attr[COLOR_WIN_NICK - 1] = (cfg_col_nick >= 0) ? cfg_col_nick & A_BOLD : 0; |
color_attr[COLOR_WIN_NICK - 1] = (cfg_col_nick >= 0) ? cfg_col_nick & A_BOLD : 0; |
2556 |
color_attr[COLOR_WIN_NICK_AWAY - 1] = (cfg_col_nick_away >= 0) ? cfg_col_nick_away & A_BOLD : 0; |
color_attr[COLOR_WIN_NICK_AWAY - 1] = (cfg_col_nick_away >= 0) ? cfg_col_nick_away & A_BOLD : 0; |
2557 |
color_attr[COLOR_WIN_NICK_CHANOWNER - 1] = (cfg_col_nick_chanowner >= 0) ? cfg_col_nick_chanowner & A_BOLD : 0; |
color_attr[COLOR_WIN_NICK_CHANOWNER - 1] = (cfg_col_nick_chanowner >= 0) ? cfg_col_nick_chanowner & A_BOLD : 0; |