--- curses.c.orig Fri Mar 3 23:46:55 2000 +++ curses.c Fri Sep 22 00:11:11 2000 @@ -58,10 +58,12 @@ #endif #include extern char LocalHostname[]; +extern int color_lasts; + void pwcenter(char *str) { int maxx, maxy; int cx; getmaxyx(stdscr, maxy, maxx); @@ -116,14 +118,28 @@ getyx(stdscr, y, x); move(y, startstat); /* net_xxx returns times in usecs. Just display millisecs */ - printw(" %3d%% %4d %4d %4d %4d %4d %6d", + printw(" %3d%% %5d %5d ", net_percent(at), - net_returned(at), net_xmit(at), - net_last(at)/1000, net_best(at)/1000, + net_returned(at), net_xmit(at)); + if(color_lasts && net_last(at) != net_avg(at)) { + if(net_last(at)= maxfd) maxfd = netfd + 1; if(anyset || paused) { - selecttime.tv_sec = 0; + selecttime.tv_sec = paused; selecttime.tv_usec = 0; select(maxfd, (void *)&readfd, NULL, NULL, &selecttime); } else { if(Interactive) @@ -142,14 +142,14 @@ if (action == ActionClear) display_clear(); if (action == ActionPause) - paused=1; + paused^=1; if (action == ActionResume) - paused=0; + paused^=1; anyset = 1; } /* Have we finished a nameservice lookup? */