Main entry point for ncurses TUI
(parser)
| 753 | option['value'] = not option['value'] |
| 754 | |
| 755 | def 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) |
no test coverage detected
searching dependent graphs…