sqlmapproject/sqlmap · error · SqlmapSystemException
unable to create ncurses UI
Error message
unable to create ncurses UI ('%s') What it means
Catch-all in runTui around curses.wrapper: any exception while initializing or running the ncurses UI (terminal too small, TERM unsupported, curses runtime error) is wrapped with this message; the cause is embedded via getSafeExString.
Solutions
- Run in a terminal with adequate size and a TERM entry curses supports
- Check the embedded cause for the specific curses failure
- Use the CLI or GUI frontends instead
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at lib/utils/tui.py:933 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of sqlmapproject/sqlmap@0a35b20e39 (2026-08-26).
Data as JSON: /api/errors/54a5515dae951368.
Report an issue: GitHub.
Appendix: source
Thrown at lib/utils/tui.py:933
# ncurses waits ESCDELAY ms (default 1000) after Esc to disambiguate escape sequences, which
# makes Esc feel like it hangs for ~1s; shrink it so Esc reacts immediately
os.environ.setdefault("ESCDELAY", "25")
try:
# Initialize and run
def main(stdscr):
if hasattr(curses, "set_escdelay"):
try:
curses.set_escdelay(25)
except curses.error:
pass
ui = NcursesUI(stdscr, parser)
ui.run()
curses.wrapper(main)
except Exception as ex:
errMsg = "unable to create ncurses UI ('%s')" % getSafeExString(ex)
raise SqlmapSystemException(errMsg)
View on GitHub (pinned to 0a35b20e39)