[PATCH v4r 0/2] less: fully implement -R

FriendlyNeighborhoodShane shane.880088.supw at gmail.com
Tue May 10 15:08:08 UTC 2022


Reposting. Added signed-off line.

The switch was half-implemented earlier and it only used to trim escape
sequences. This patch series implements the feature fully i.e. makes
it emit color (SGR) sequences raw, and fixes other behaviour around it.

Bloatcheck:
function                                             old     new   delta
buffer_print                                         734     926    +192
.rodata                                           100509  100539     +30
packed_usage                                       34508   34506      -2
read_lines                                           896     810     -86
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/2 up/down: 222/-88)           Total: 134 bytes
   text	   data	    bss	    dec	    hex	filename
1043376	  16435	   1816	1061627	 1032fb	busybox_old
1043510	  16435	   1816	1061761	 103381	busybox_unstripped

Changes from v1:
 - count_colctrl does better validation for SGR sequences

Changes from v2:
 - fixed corrupted patches (accidentally edited before sending)
 - fix code style

Changes from v3:
 - fixed regex in commit message




More information about the busybox mailing list