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

Function show_message

Scripts/Network Tools/Dark.py:755–764  ·  view source on GitHub ↗
(stdscr, message)

Source from the content-addressed store, hash-verified

753 else:
754 user_input = stdscr.getstr(1, 12, 200).decode('utf-8').strip()
755 except Exception:
756 user_input = ""
757 curses.noecho()
758 return user_input if user_input else default
759
760
761def show_message(stdscr, message):
762 stdscr.clear()
763 h, w = stdscr.getmaxyx()
764 lines = message.split('\n')
765 for i, line in enumerate(lines):
766 if i < h - 2:
767 stdscr.addstr(i, 0, line[:w-1])

Callers 1

curses_menuFunction · 0.70

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected