Commit 54ffa27
committed
infocmp -C: high-byte octal escaping + inline %r placement
Two derivable termcap fixes (clean-room, oracle-verified):
- termcap value escaping now renders high bytes 0x81..0xff as 3-digit octal (\nnn),
matching ncurses (e.g. CSI 0x9b -> \233); previously emitted raw.
- %r (reverse the two parameters) is emitted INLINE before the first
parameter-consuming output op, not prepended: \E&a%p2%dc%p1%dY -> \E&a%r%dc%dY
(was %r\E&a%dc%dY).
Termcap (-C) content match 25.1% -> 27.7%, exact 16.3% -> 18.1% across the DB.
Remaining derivable work continues (control-char octal/caret islong rule, the
as/ae/rs drop conditions, the wrap rule); the me/sgr0 derivation is honestly bounded
as not a function of observable inputs.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CbiPgWC3PHKmrTNvZzXcWQ1 parent c738880 commit 54ffa27
1 file changed
Lines changed: 20 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
| 227 | + | |
227 | 228 | | |
228 | 229 | | |
229 | 230 | | |
| |||
288 | 289 | | |
289 | 290 | | |
290 | 291 | | |
291 | | - | |
292 | | - | |
293 | | - | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
294 | 295 | | |
295 | 296 | | |
296 | 297 | | |
| |||
309 | 310 | | |
310 | 311 | | |
311 | 312 | | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
312 | 317 | | |
313 | 318 | | |
314 | 319 | | |
315 | 320 | | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
316 | 325 | | |
317 | 326 | | |
318 | 327 | | |
| |||
328 | 337 | | |
329 | 338 | | |
330 | 339 | | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
331 | 344 | | |
332 | 345 | | |
333 | 346 | | |
| |||
339 | 352 | | |
340 | 353 | | |
341 | 354 | | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
342 | 359 | | |
343 | 360 | | |
344 | 361 | | |
| |||
0 commit comments