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

Function centered_addstr

Scripts/Developer Base/Smart Notes.py:157–163  ·  view source on GitHub ↗
(win, y, text, attr=0)

Source from the content-addressed store, hash-verified

155
156
157def centered_addstr(win, y, text, attr=0):
158 try:
159 h, w = win.getmaxyx()
160 x = max(0, (w - len(text)) // 2)
161 win.addstr(y, x, text, attr)
162 except Exception:
163 pass
164
165# --- curses UI components ---
166

Callers 10

curses_editorFunction · 0.70
curses_inputFunction · 0.70
curses_select_from_listFunction · 0.70
curses_searchFunction · 0.70
confirm_dialogFunction · 0.70
view_note_cursesFunction · 0.70
action_for_noteFunction · 0.70
curses_date_pickerFunction · 0.70
curses_reminders_menuFunction · 0.70
main_menuFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected