Lines Matching refs:sw

103 static WINDOW *sw[SW_COUNT];
117 if (sw[i] != NULL) {
118 (void) delwin(sw[i]);
119 sw[i] = NULL;
190 sw[SW_TITLE] = subwin(stdscr, SINGLE_LINE_SW, win_cols, pos_y, 0);
193 sw[SW_IDLE] = subwin(stdscr, cstate_lines, win_cols/2 + 1, pos_y, 0);
194 sw[SW_FREQ] = subwin(stdscr, cstate_lines, win_cols/2 - 8, pos_y,
198 sw[SW_WAKEUPS] = subwin(stdscr, SINGLE_LINE_SW, win_cols, pos_y, 0);
201 sw[SW_POWER] = subwin(stdscr, SINGLE_LINE_SW, win_cols, pos_y, 0);
208 sw[SW_EVENTS] = subwin(stdscr, event_lines, win_cols, pos_y, 0);
217 sw[SW_SUGG] = subwin(stdscr, SINGLE_LINE_SW, win_cols, pos_y, 0);
220 sw[SW_STATUS] = subwin(stdscr, SINGLE_LINE_SW, win_cols, pos_y, 0);
290 (void) wattrset(sw[SW_TITLE], COLOR_PAIR(PT_COLOR_HEADER_BAR));
291 (void) wbkgd(sw[SW_TITLE], COLOR_PAIR(PT_COLOR_HEADER_BAR));
292 (void) werase(sw[SW_TITLE]);
298 print(sw[SW_TITLE], 0, 0, title_pad, TITLE);
300 (void) wnoutrefresh(sw[SW_TITLE]);
309 (void) werase(sw[SW_STATUS]);
312 (void) wattron(sw[SW_STATUS], A_REVERSE);
313 print(sw[SW_STATUS], 0, x, "%s", n->msg);
314 (void) wattroff(sw[SW_STATUS], A_REVERSE);
320 (void) wnoutrefresh(sw[SW_STATUS]);
406 print(sw[SW_IDLE], 0, 0, "%s\tAvg\tResidency\n", g_msg_idle_state);
412 print(sw[SW_IDLE], 1, 0, "%s", c);
430 print(sw[SW_IDLE], i + 1, 0, "%s", c);
435 (void) wnoutrefresh(sw[SW_IDLE]);
437 print(sw[SW_FREQ], 0, 0, "%s\n", g_msg_freq_state);
454 print(sw[SW_FREQ], i+1, 0, "%s\n", c);
511 print(sw[SW_FREQ], i+1, 0, "%s\n", c);
516 print(sw[SW_FREQ], 1, 0, "%s\n", c);
521 (void) wnoutrefresh(sw[SW_FREQ]);
533 (void) werase(sw[SW_POWER]);
561 print(sw[SW_POWER], 0, 0, "%s\n", buffer);
563 (void) wnoutrefresh(sw[SW_POWER]);
574 (void) werase(sw[SW_WAKEUPS]);
575 (void) wbkgd(sw[SW_WAKEUPS], COLOR_PAIR(PT_COLOR_RED));
576 (void) wattron(sw[SW_WAKEUPS], A_BOLD);
597 print(sw[SW_WAKEUPS], 0, 0, "%s\n", c);
600 (void) wnoutrefresh(sw[SW_WAKEUPS]);
612 (void) werase(sw[SW_EVENTS]);
613 (void) wbkgd(sw[SW_EVENTS], COLOR_PAIR(PT_COLOR_DEFAULT));
614 (void) wattron(sw[SW_EVENTS], COLOR_PAIR(PT_COLOR_DEFAULT));
632 print(sw[SW_EVENTS], 0, 0, "%s", c);
644 print(sw[SW_EVENTS], i+1, 0, "%s", c);
645 print(sw[SW_EVENTS], i+1, 16, "%20s :",
647 print(sw[SW_EVENTS], i+1, 40, "%-64s\n",
652 (void) wnoutrefresh(sw[SW_EVENTS]);
658 (void) werase(sw[SW_SUGG]);
661 print(sw[SW_SUGG], 0, 0, "%s", sug);
663 (void) wnoutrefresh(sw[SW_SUGG]);