Add hexN output mode

Adds support for hexN mode where N is a number in the range 1 to 4096
which defines how many hex values will be printed before a line break.

In short, it defines the width of the hex output.

In this mode, if timestamps are enabled they will be added to each hex
line.
This commit is contained in:
Martin Lund 2024-04-27 15:22:41 +02:00
parent 4113a072c2
commit 42ff234204
5 changed files with 151 additions and 22 deletions

View file

@ -248,9 +248,14 @@ editing feature supported in this mode is backspace.
Default value is "normal".
.TP
.BR " \-\-output\-mode " normal|hex
.BR " \-\-output\-mode " normal|hex|hexN
Set output mode. In hex mode each incoming byte is printed out as a 1 byte hex value.
Set output mode.
In hex mode each incoming byte is printed out as a 1 byte hex value.
In hexN mode, N is a number less than or equal to 4096 which defines how many
hex values will be printed before a line break.
Default value is "normal".