MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / reinit_curses

Function reinit_curses

Scripts/Developer Base/Smart Notes.py:144–154  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

142
143
144def reinit_curses():
145 stdscr = curses.initscr()
146 curses.noecho()
147 curses.cbreak()
148 stdscr.keypad(True)
149 try:
150 curses.curs_set(0)
151 except Exception:
152 pass
153 stdscr.clear()
154 return stdscr
155
156
157def centered_addstr(win, y, text, attr=0):

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected