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,7 +1,7 @@
{
"schema": 2,
"profileId": "bare-os-posix-like",
"generatedAt": "2026-04-21T22:22:05.245Z",
"generatedAt": "2026-04-21T22:34:00.573Z",
"note": "Sparse POSIX Issue 7 coverage hints for /bin utilities. Omitted command names are not yet profiled here.",
"commandIndex": [
{
@@ -12,10 +12,6 @@
"name": "awk",
"tier": "tier1_bin"
},
{
"name": "bare-sshd",
"tier": "tier1_bin"
},
{
"name": "baretop",
"tier": "tier1_bin"