Removes a file/directory/symlink if it exists.
(target_path)
| 837 | stdscr.addstr(y, x, safe_text) |
| 838 | except Exception: |
| 839 | pass |
| 840 | |
| 841 | |
| 842 | def safe_curses_wrapper(func, *args, **kwargs): |
| 843 | """Run a curses UI while tolerating Termux cleanup-only errors. |
| 844 | |
| 845 | Startup deliberately matches :func:`curses.wrapper`: ``noecho()``, |
| 846 | ``cbreak()`` and keypad mode must all succeed before the UI starts. Hiding |
| 847 | failures there leaves the terminal in canonical/echo mode, causing arrow |
| 848 | keys to appear as escape text such as ``^[OB`` and requiring Enter. |
| 849 | |
| 850 | Some Termux/Python 3.14 combinations raise ``curses.error`` only while |
no outgoing calls
no test coverage detected