"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/uit_conn.c" between
ncdc-1.23.tar.gz and ncdc-1.23.1.tar.gz

About: Ncdc is a lightweight direct connect client with a friendly ncurses interface.

uit_conn.c  (ncdc-1.23):uit_conn.c  (ncdc-1.23.1)
skipping to change at line 109 skipping to change at line 109
if(iter == list->sel) if(iter == list->sel)
mvaddstr(row, 0, ">"); mvaddstr(row, 0, ">");
mvaddch(row, 2, mvaddch(row, 2,
cc->state == CCS_CONN ? 'C' : cc->state == CCS_CONN ? 'C' :
cc->state == CCS_DISCONN ? '-' : cc->state == CCS_DISCONN ? '-' :
cc->state == CCS_HANDSHAKE ? 'H' : cc->state == CCS_HANDSHAKE ? 'H' :
cc->state == CCS_IDLE ? 'I' : cc->dl ? 'D' : 'U'); cc->state == CCS_IDLE ? 'I' : cc->dl ? 'D' : 'U');
mvaddch(row, 3, cc->tls ? 't' : ' '); mvaddch(row, 3, cc->tls ? 't' : ' ');
if(cc->nick) char *tmp = cc->nick ? cc->nick : cc->remoteaddr;
mvaddnstr(row, 5, cc->nick, str_offset_from_columns(cc->nick, 15)); mvaddnstr(row, 5, tmp, str_offset_from_columns(tmp, 15));
else {
char tmp[30];
strcpy(tmp, "IP:");
strcat(tmp, cc->remoteaddr);
if(strchr(tmp+3, ':'))
*(strchr(tmp+3, ':')) = 0;
mvaddstr(row, 5, tmp);
}
if(cc->hub) if(cc->hub)
mvaddnstr(row, 21, cc->hub->tab->name, str_offset_from_columns(cc->hub->tab- >name, 11)); mvaddnstr(row, 21, cc->hub->tab->name, str_offset_from_columns(cc->hub->tab- >name, 11));
mvaddstr(row, 33, cc->last_length ? str_formatsize(cc->last_length) : "-"); mvaddstr(row, 33, cc->last_length ? str_formatsize(cc->last_length) : "-");
if(cc->last_length && !cc->timeout_src) { if(cc->last_length && !cc->timeout_src) {
float length = cc->last_length; float length = cc->last_length;
mvprintw(row, 45, "%3.0f%%", (length-net_left(cc->net))*100.0f/length); mvprintw(row, 45, "%3.0f%%", (length-net_left(cc->net))*100.0f/length);
} else } else
 End of changes. 1 change blocks. 
10 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)