Lines Matching refs:sw

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