Commit fc89769
committed
infocmp -C: translate %{K}%+%c and escape %+ arguments standalone
Add the %{K}%+%c -> %+<char K> translation (add-constant, emit-as-char), mirroring
the existing %'X'%+%c form. The %+ argument is a single character escaped on its own
(caret for control bytes), independent of the surrounding value's caret-vs-octal
length test -- so adm20's cm renders \E=%i%r%+^_%+^_ (caret), matching ncurses, while
a literal control byte like a980's al \016 still follows the length heuristic (octal).
Termcap (-C) content 66.3% -> 66.4%. terminfo -1 100%; tests green.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CbiPgWC3PHKmrTNvZzXcWQ1 parent b74bdf6 commit fc89769
1 file changed
Lines changed: 31 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
382 | | - | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
383 | 385 | | |
384 | 386 | | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
385 | 415 | | |
386 | 416 | | |
387 | 417 | | |
| |||
0 commit comments