#include <stdlib.h>
#include <sys/types.h>
#include "ap-utils.h"
-#include "ap-curses.h"
#define RADIO_HELP _("[key] - power level; UIOP or LR - antenna; W - write config; Q - quit to menu")
varbinds[1].type = NULL_VALUE;
print_help(WAIT_RET);
- if (snmp(varbinds, 2, GET) <= 0) {
+ if (snmp(varbinds, 2, GET) < 2) {
print_helperr(ERR_RET);
goto exit;
}
memcpy(power, varbinds[0].value, 14);
antenna_vlen = varbinds[1].len_val;
- print_title(_("Radio Configuration"));
+ print_top(NULL, _("Radio Configuration"));
mvwaddstr(main_sub, 0, 1, _("Output RF signal power level (CR31 register values)"));
mvwaddstr(main_sub, 1, 1, "---------------------------------------------------");
mvwaddstr(main_sub, 2, 1, _("Key Channel Level"));
print_helperr(ERR_SET);
goto exit;
}
+ wbkgd(main_sub, A_NORMAL);
+ wrefresh(main_sub);
break;
default:
continue;
exit:
getch();
quit:
- print_title("");
+ print_top(NULL, NULL);
clear_main(0);
}
+