def _getwnd(self, s, width=10, height=30): scrn = self._getscreen(s, width, height) wnd = _DmyWnd(scrn) wnd.document = scrn.document wnd.document.add_window(wnd) wnd.cursor = cursor.Cursor(wnd) return wnd
def _oninit(self): super()._oninit() self._cwnd.leaveok(0) self._cwnd.scrollok(0) self.screen = screen.Screen() self.screen.setsize(*self.getsize()) self.cursor = cursor.Cursor(self) self.pending_str = '' self.charattrs = {} self.highlight_cursor_row = False self.line_overlays = {}
def __init__(self, scrn): self.screen = scrn self.cursor = cursor.Cursor(self)
def _getcursor(self, s, width=10, height=10): wnd = self._getwnd(s, width, height) return cursor.Cursor(wnd)