MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / runTui

Function runTui

lib/utils/tui.py:755–770  ·  view source on GitHub ↗

Main entry point for ncurses TUI

(parser)

Source from the content-addressed store, hash-verified

753 option['value'] = not option['value']
754
755def runTui(parser):
756 """Main entry point for ncurses TUI"""
757 # Check if ncurses is available
758 if curses is None:
759 raise SqlmapMissingDependence("missing 'curses' module (optional Python module). Use a Python build that includes curses/ncurses, or install the platform-provided equivalent (e.g. for Windows: pip install windows-curses)")
760 try:
761 # Initialize and run
762 def main(stdscr):
763 ui = NcursesUI(stdscr, parser)
764 ui.run()
765
766 curses.wrapper(main)
767
768 except Exception as ex:
769 errMsg = "unable to create ncurses UI ('%s')" % getSafeExString(ex)
770 raise SqlmapSystemException(errMsg)

Callers 1

cmdLineParserFunction · 0.90

Calls 4

getSafeExStringFunction · 0.90
wrapperMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…