X-Git-Url: https://git.decadent.org.uk/gitweb/?p=ap-utils.git;a=blobdiff_plain;f=ap-gl%2Fstations.c;fp=ap-gl%2Fstations.c;h=d8913808bdc1ab061d7314c5d634f3acc4c8f74d;hp=9d47e0eab4618efa22f561ec415dac994e69a4af;hb=1aac4ac30a9a0d6cd2182013d2b3fd48b65ed2fd;hpb=5c77e013a46530bb3650f61d768dfed0dd3b72cb diff --git a/ap-gl/stations.c b/ap-gl/stations.c index 9d47e0e..d891380 100644 --- a/ap-gl/stations.c +++ b/ap-gl/stations.c @@ -60,7 +60,7 @@ void atmel_stations() int mac_num, begin, end, total_mac; varbind varbinds[1]; - print_top(NULL, TITLE_STAS); + print_top(NULL, ST_TITLE); varbinds[0].oid = bridgeOperationalMode; varbinds[0].len_oid = sizeof(bridgeOperationalMode); @@ -97,9 +97,12 @@ void atmel_stations() total_mac = *(varbinds[0].value); mac_num = 1; - sprintf(message, "%s: %d", TITLE_STAS, total_mac); + sprintf(message, "%s: %d", ST_TITLE, total_mac); print_top(NULL, message); - mvwaddstr(main_sub, 0, 1, _("# MAC LQ RSSI Status Port IP")); + wattrset(main_sub, COLOR_PAIR(13)); + mvwaddstr(main_sub, 0, 0, + _(" # MAC Parent MAC RSSI LQ Sts MACn IP ")); + wattrset(main_sub, A_NORMAL); noecho(); while (mac_num <= total_mac) { @@ -154,7 +157,7 @@ void atmel_stations() mac_num++; } begin = 1; - end = (MAX_LINES < mac_num) ? MAX_LINES : mac_num; + end = (mac_num > MAX_LINES) ? MAX_LINES : mac_num; scroll_rows(first, begin, end, 1, 2); while (1) { print_help(_("Arrows - scroll; S - save to file; Q - quit to menu."));