Lines Matching refs:win
980 for win in _top_sep_win, _menu_win, _bot_sep_win, _help_win:
981 win.mvwin(0, 0)
1547 win = _styled_win("body")
1548 win.keypad(True)
1553 _resize_input_dialog(win, title, info_lines)
1564 return win.getmaxyx()[1] - 4
1574 _draw_input_dialog(win, title, info_lines, s, i, hscroll)
1578 c = _get_wch_compat(win)
1583 _resize_input_dialog(win, title, info_lines)
1596 def _resize_input_dialog(win, title, info_lines): argument
1611 win.resize(win_height, win_width)
1612 win.mvwin((screen_height - win_height)//2,
1615 def _draw_input_dialog(win, title, info_lines, s, i, hscroll): argument
1616 edit_width = win.getmaxyx()[1] - 4
1618 win.erase()
1622 _safe_addstr(win, 2, 2, visible_s + " "*(edit_width - len(visible_s)),
1626 _safe_addstr(win, 4 + linenr, 2, line)
1629 _draw_frame(win, title)
1631 _safe_move(win, 2, 2 + i - hscroll)
1633 win.noutrefresh()
1750 win = _styled_win("body")
1751 win.keypad(True)
1753 _resize_key_dialog(win, text)
1758 _draw_key_dialog(win, title, text)
1762 c = _get_wch_compat(win)
1767 _resize_key_dialog(win, text)
1777 def _resize_key_dialog(win, text): argument
1787 win.resize(win_height, win_width)
1788 win.mvwin((screen_height - win_height)//2,
1791 def _draw_key_dialog(win, title, text): argument
1792 win.erase()
1795 _safe_addstr(win, 2 + i, 2, line)
1798 _draw_frame(win, title)
1800 win.noutrefresh()
1802 def _draw_frame(win, title): argument
1805 win_height, win_width = win.getmaxyx()
1807 win.attron(_style["frame"])
1810 _safe_hline(win, 0, 0, " ", win_width)
1811 _safe_hline(win, win_height - 1, 0, " ", win_width)
1814 _safe_vline(win, 0, 0, " ", win_height)
1815 _safe_vline(win, 0, win_width - 1, " ", win_height)
1818 _safe_addstr(win, 0, max((win_width - len(title))//2, 0), title)
1820 win.attroff(_style["frame"])
2087 for win in matches_win, bot_sep_win, help_win:
2088 win.mvwin(0, 0)
2289 for win in text_win, bot_sep_win, help_win:
2290 win.mvwin(0, 0)
2639 win = curses.newwin(1, 1)
2640 win.bkgdset(" ", _style[style])
2641 return win
2643 def _max_scroll(lst, win): argument
2648 return max(0, len(lst) - win.getmaxyx()[0])
2914 def _get_wch_compat(win): argument
2924 c = win.get_wch()
2950 def _safe_addstr(win, *args): argument
2957 y, x = win.getyx()
2966 maxlen = win.getmaxyx()[1] - x
2974 win.addnstr(y, x, s, maxlen)
2976 win.addnstr(y, x, s, maxlen, attr)
2980 def _safe_addch(win, *args): argument
2982 win.addch(*args)
2986 def _safe_hline(win, *args): argument
2988 win.hline(*args)
2992 def _safe_vline(win, *args): argument
2994 win.vline(*args)
2998 def _safe_move(win, *args): argument
3000 win.move(*args)