Lines Matching defs:sw

99 static WINDOW *sw[SW_COUNT];
113 if (sw[i] != NULL) {
114 (void) delwin(sw[i]);
115 sw[i] = NULL;
186 sw[SW_TITLE] = subwin(stdscr, SINGLE_LINE_SW, win_cols, pos_y, 0);
189 sw[SW_IDLE] = subwin(stdscr, cstate_lines, win_cols/2 + 1, pos_y, 0);
190 sw[SW_FREQ] = subwin(stdscr, cstate_lines, win_cols/2 - 8, pos_y,
194 sw[SW_WAKEUPS] = subwin(stdscr, SINGLE_LINE_SW, win_cols, pos_y, 0);
197 sw[SW_POWER] = subwin(stdscr, SINGLE_LINE_SW, win_cols, pos_y, 0);
204 sw[SW_EVENTS] = subwin(stdscr, event_lines, win_cols, pos_y, 0);
212 sw[SW_SUGG] = subwin(stdscr, SINGLE_LINE_SW, win_cols, pos_y, 0);
215 sw[SW_STATUS] = subwin(stdscr, SINGLE_LINE_SW, win_cols, pos_y, 0);
285 (void) wattrset(sw[SW_TITLE], COLOR_PAIR(PT_COLOR_HEADER_BAR));
286 (void) wbkgd(sw[SW_TITLE], COLOR_PAIR(PT_COLOR_HEADER_BAR));
287 (void) werase(sw[SW_TITLE]);
293 print(sw[SW_TITLE], 0, 0, title_pad, TITLE);
295 (void) wnoutrefresh(sw[SW_TITLE]);
304 (void) werase(sw[SW_STATUS]);
307 (void) wattron(sw[SW_STATUS], A_REVERSE);
308 print(sw[SW_STATUS], 0, x, "%s", n->msg);
309 (void) wattroff(sw[SW_STATUS], A_REVERSE);
315 (void) wnoutrefresh(sw[SW_STATUS]);
402 print(sw[SW_IDLE], 0, 0, "%s\tAvg\tResidency\n", g_msg_cstate);
412 print(sw[SW_IDLE], 1, 0, "%s", c);
438 print(sw[SW_IDLE], i + 1, 0, "%s", c);
444 (void) wnoutrefresh(sw[SW_IDLE]);
446 print(sw[SW_FREQ], 0, 0, "%s\n", g_msg_pstate);
463 print(sw[SW_FREQ], i+1, 0, "%s\n", c);
508 print(sw[SW_FREQ], i+1, 0, "%s\n", c);
513 print(sw[SW_FREQ], 1, 0, "%s\n", c);
518 (void) wnoutrefresh(sw[SW_FREQ]);
531 (void) werase(sw[SW_POWER]);
559 print(sw[SW_POWER], 0, 0, "%s\n", buffer);
561 (void) wnoutrefresh(sw[SW_POWER]);
572 (void) werase(sw[SW_WAKEUPS]);
573 (void) wbkgd(sw[SW_WAKEUPS], COLOR_PAIR(PT_COLOR_RED));
574 (void) wattron(sw[SW_WAKEUPS], A_BOLD);
595 print(sw[SW_WAKEUPS], 0, 0, "%s\n", c);
598 (void) wnoutrefresh(sw[SW_WAKEUPS]);
610 (void) werase(sw[SW_EVENTS]);
611 (void) wbkgd(sw[SW_EVENTS], COLOR_PAIR(PT_COLOR_DEFAULT));
612 (void) wattron(sw[SW_EVENTS], COLOR_PAIR(PT_COLOR_DEFAULT));
630 print(sw[SW_EVENTS], 0, 0, "%s", c);
642 print(sw[SW_EVENTS], i+1, 0, "%s", c);
643 print(sw[SW_EVENTS], i+1, 16, "%20s :",
645 print(sw[SW_EVENTS], i+1, 40, "%-64s\n",
650 (void) wnoutrefresh(sw[SW_EVENTS]);
656 (void) werase(sw[SW_SUGG]);
659 print(sw[SW_SUGG], 0, 0, "%s", sug);
661 (void) wnoutrefresh(sw[SW_SUGG]);