{"record":{"id":"54a5515dae951368","repo":"sqlmapproject/sqlmap","slug":"unable-to-create-ncurses-ui-s","errorCode":null,"errorMessage":"unable to create ncurses UI ('%s')","messagePattern":"unable to create ncurses UI \\('(.+?)'\\)","errorType":"exception","errorClass":"SqlmapSystemException","httpStatus":null,"severity":"error","filePath":"lib/utils/tui.py","lineNumber":933,"sourceCode":"    # ncurses waits ESCDELAY ms (default 1000) after Esc to disambiguate escape sequences, which\n    # makes Esc feel like it hangs for ~1s; shrink it so Esc reacts immediately\n    os.environ.setdefault(\"ESCDELAY\", \"25\")\n    try:\n        # Initialize and run\n        def main(stdscr):\n            if hasattr(curses, \"set_escdelay\"):\n                try:\n                    curses.set_escdelay(25)\n                except curses.error:\n                    pass\n            ui = NcursesUI(stdscr, parser)\n            ui.run()\n\n        curses.wrapper(main)\n\n    except Exception as ex:\n        errMsg = \"unable to create ncurses UI ('%s')\" % getSafeExString(ex)\n        raise SqlmapSystemException(errMsg)\n","sourceCodeStart":915,"sourceCodeEnd":934,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/lib/utils/tui.py#L915-L934","documentation":"Error \"unable to create ncurses UI ('%s')\" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at lib/utils/tui.py:933 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0a35b20e3953d341be6c7ac75ccb0b3362540c8d","analyzedAt":"2026-08-26T23:02:52.002Z","schemaVersion":2},"datasetVersion":"2026-08-27T03:17:27.898Z"}