Home
last modified time | relevance | path

Searched refs:stdscr (Results 1 – 22 of 22) sorted by relevance

/openbmc/linux/scripts/kconfig/lxdialog/
H A Dyesno.c35 if (getmaxy(stdscr) < (height + YESNO_HEIGTH_MIN)) in dialog_yesno()
37 if (getmaxx(stdscr) < (width + YESNO_WIDTH_MIN)) in dialog_yesno()
41 x = (getmaxx(stdscr) - width) / 2; in dialog_yesno()
42 y = (getmaxy(stdscr) - height) / 2; in dialog_yesno()
44 draw_shadow(stdscr, y, x, height, width); in dialog_yesno()
H A Dutil.c246 lines = getmaxy(stdscr); in dialog_clear()
247 columns = getmaxx(stdscr); in dialog_clear()
263 wmove(stdscr, 1, 1); in dialog_clear()
266 waddstr(stdscr, ellipsis); in dialog_clear()
272 waddch(stdscr, ACS_RARROW); in dialog_clear()
277 waddch(stdscr, ' '); in dialog_clear()
288 waddch(stdscr, ' '); in dialog_clear()
294 waddch(stdscr, ACS_HLINE); in dialog_clear()
296 wnoutrefresh(stdscr); in dialog_clear()
309 getyx(stdscr, saved_y, saved_x); in init_dialog()
[all …]
H A Dinputbox.c46 if (getmaxy(stdscr) <= (height - INPUTBOX_HEIGTH_MIN)) in dialog_inputbox()
48 if (getmaxx(stdscr) <= (width - INPUTBOX_WIDTH_MIN)) in dialog_inputbox()
52 x = (getmaxx(stdscr) - width) / 2; in dialog_inputbox()
53 y = (getmaxy(stdscr) - height) / 2; in dialog_inputbox()
55 draw_shadow(stdscr, y, x, height, width); in dialog_inputbox()
H A Dchecklist.c122 if (getmaxy(stdscr) < (height + CHECKLIST_HEIGTH_MIN)) in dialog_checklist()
124 if (getmaxx(stdscr) < (width + CHECKLIST_WIDTH_MIN)) in dialog_checklist()
130 x = (getmaxx(stdscr) - width) / 2; in dialog_checklist()
131 y = (getmaxy(stdscr) - height) / 2; in dialog_checklist()
133 draw_shadow(stdscr, y, x, height, width); in dialog_checklist()
H A Dtextbox.c177 getmaxyx(stdscr, height, width); in dialog_textbox()
196 x = (getmaxx(stdscr) - width) / 2; in dialog_textbox()
197 y = (getmaxy(stdscr) - height) / 2; in dialog_textbox()
199 draw_shadow(stdscr, y, x, height, width); in dialog_textbox()
H A Dmenubox.c173 height = getmaxy(stdscr); in dialog_menu()
174 width = getmaxx(stdscr); in dialog_menu()
185 x = (getmaxx(stdscr) - width) / 2; in dialog_menu()
186 y = (getmaxy(stdscr) - height) / 2; in dialog_menu()
188 draw_shadow(stdscr, y, x, height, width); in dialog_menu()
/openbmc/u-boot/scripts/kconfig/lxdialog/
H A Dyesno.c35 if (getmaxy(stdscr) < (height + YESNO_HEIGTH_MIN)) in dialog_yesno()
37 if (getmaxx(stdscr) < (width + YESNO_WIDTH_MIN)) in dialog_yesno()
41 x = (getmaxx(stdscr) - width) / 2; in dialog_yesno()
42 y = (getmaxy(stdscr) - height) / 2; in dialog_yesno()
44 draw_shadow(stdscr, y, x, height, width); in dialog_yesno()
H A Dutil.c246 lines = getmaxy(stdscr); in dialog_clear()
247 columns = getmaxx(stdscr); in dialog_clear()
263 wmove(stdscr, 1, 1); in dialog_clear()
266 waddstr(stdscr, ellipsis); in dialog_clear()
272 waddch(stdscr, ACS_RARROW); in dialog_clear()
277 waddch(stdscr, ' '); in dialog_clear()
288 waddch(stdscr, ' '); in dialog_clear()
294 waddch(stdscr, ACS_HLINE); in dialog_clear()
296 wnoutrefresh(stdscr); in dialog_clear()
309 getyx(stdscr, saved_y, saved_x); in init_dialog()
[all …]
H A Dinputbox.c46 if (getmaxy(stdscr) <= (height - INPUTBOX_HEIGTH_MIN)) in dialog_inputbox()
48 if (getmaxx(stdscr) <= (width - INPUTBOX_WIDTH_MIN)) in dialog_inputbox()
52 x = (getmaxx(stdscr) - width) / 2; in dialog_inputbox()
53 y = (getmaxy(stdscr) - height) / 2; in dialog_inputbox()
55 draw_shadow(stdscr, y, x, height, width); in dialog_inputbox()
H A Dchecklist.c122 if (getmaxy(stdscr) < (height + CHECKLIST_HEIGTH_MIN)) in dialog_checklist()
124 if (getmaxx(stdscr) < (width + CHECKLIST_WIDTH_MIN)) in dialog_checklist()
130 x = (getmaxx(stdscr) - width) / 2; in dialog_checklist()
131 y = (getmaxy(stdscr) - height) / 2; in dialog_checklist()
133 draw_shadow(stdscr, y, x, height, width); in dialog_checklist()
H A Dmenubox.c181 height = getmaxy(stdscr); in dialog_menu()
182 width = getmaxx(stdscr); in dialog_menu()
193 x = (getmaxx(stdscr) - width) / 2; in dialog_menu()
194 y = (getmaxy(stdscr) - height) / 2; in dialog_menu()
196 draw_shadow(stdscr, y, x, height, width); in dialog_menu()
H A Dtextbox.c69 getmaxyx(stdscr, height, width); in dialog_textbox()
88 x = (getmaxx(stdscr) - width) / 2; in dialog_textbox()
89 y = (getmaxy(stdscr) - height) / 2; in dialog_textbox()
91 draw_shadow(stdscr, y, x, height, width); in dialog_textbox()
/openbmc/linux/tools/thermal/tmon/
H A Dtui.c123 getmaxyx(stdscr, maxy, maxx); in setup_windows()
126 title_bar_window = subwin(stdscr, TITLE_BAR_HIGHT, maxx, 0, 0); in setup_windows()
129 tz_sensor_window = subwin(stdscr, SENSOR_WIN_HIGHT, maxx, y_begin, 0); in setup_windows()
132 cooling_device_window = subwin(stdscr, ptdata.nr_cooling_dev + 3, maxx, in setup_windows()
140 dialogue_window = subwin(stdscr, diag_dev_rows() + 5, maxx-50, in setup_windows()
143 thermal_data_window = subwin(stdscr, ptdata.nr_tz_sensor * in setup_windows()
146 control_window = subwin(stdscr, 4, maxx, y_begin, 0); in setup_windows()
150 status_bar_window = subwin(stdscr, 1, maxx, maxy-1, 0); in setup_windows()
178 werase(stdscr); in setup_windows()
189 getmaxyx(stdscr, maxy, maxx); /* get the new screen size */ in resize_handler()
[all …]
H A Dtmon.c88 keypad(stdscr, FALSE); in tmon_cleanup()
298 nodelay(stdscr, TRUE); in main()
/openbmc/u-boot/scripts/kconfig/
H A Dnconf.gui.c159 win = stdscr; in print_in_middle()
280 y = (getmaxy(stdscr)-(msg_lines+4))/2; in btn_dialog()
281 x = (getmaxx(stdscr)-(total_width+4))/2; in btn_dialog()
374 getmaxyx(stdscr, lines, columns); in dialog_inputbox()
567 getmaxyx(stdscr, lines, columns); in show_scroll_win()
H A Dnconf.c370 int lines = getmaxy(stdscr); in print_function_line()
960 print_in_middle(stdscr, 1, 0, getmaxx(stdscr), in show_menu()
1463 getmaxyx(stdscr, lines, columns); in setup_windows()
1508 keypad(stdscr, TRUE); in main()
1511 getmaxyx(stdscr, lines, columns); in main()
1519 notimeout(stdscr, FALSE); in main()
H A Dmconf.c793 help.max_width = getmaxx(stdscr) - 10; in show_help()
/openbmc/qemu/ui/
H A Dcurses.c324 wnoutrefresh(stdscr); in curses_refresh()
746 initscr(); noecho(); intrflush(stdscr, FALSE); in curses_setup()
747 nodelay(stdscr, TRUE); nonl(); keypad(stdscr, TRUE); in curses_setup()
748 start_color(); raw(); scrollok(stdscr, FALSE); in curses_setup()
/openbmc/linux/scripts/kconfig/
H A Dnconf.c376 int lines = getmaxy(stdscr); in print_function_line()
1031 print_in_middle(stdscr, 1, getmaxx(stdscr), in show_menu()
1550 getmaxyx(stdscr, lines, columns); in setup_windows()
1591 keypad(stdscr, TRUE); in main()
1594 getmaxyx(stdscr, lines, columns); in main()
1602 notimeout(stdscr, FALSE); in main()
H A Dnconf.gui.c230 y = (getmaxy(stdscr)-(msg_lines+4))/2; in btn_dialog()
231 x = (getmaxx(stdscr)-(total_width+4))/2; in btn_dialog()
324 getmaxyx(stdscr, lines, columns); in dialog_inputbox()
531 getmaxyx(stdscr, lines, columns); in show_scroll_win_ext()
H A Dmconf.c374 help.max_width = getmaxx(stdscr) - 10; in show_help()
/openbmc/openbmc/poky/bitbake/lib/bb/ui/
H A Dncurses.py190 def main(self, stdscr, server, eventHandler, params): argument
192 height, width = stdscr.getmaxyx()