fix(edit,nano): bracketed paste + bounded prompts so Save-as cannot flood

Enable xterm bracketed paste (?2004h/?2004l), parse ESC[200~…201~ as a single
paste event, insert paste in the buffer with one undo step, and replace
prompt input with first-line sanitized text capped by BARE_EDIT_MAX_PROMPT.
Cap typed prompt length for terminals without bracketed paste. Extend tests and
rebuild kernel /bin edit and nano bundles.
This commit is contained in:
Raven Scott
2026-04-21 18:45:55 -04:00
parent 36492de3d9
commit ef0301f435
19 changed files with 1511 additions and 40019 deletions
+1 -19985
View File
File diff suppressed because one or more lines are too long