mirror of
https://github.com/tio/tio.git
synced 2026-05-01 23:07:58 +02:00
Extended hexadecimal mode.
While in hex mode (ctrl-t h) you can output hexadecimal values. E.g.: to send 0x0A you have to type 0A (always 2 characters). Added option -x, --hex to start in hexadecimal mode. Added option --newline-in-hex to interpret newline characters in hex mode. This is disabled by default, because, in my opinion, hex stream is fundamentally different from text, so a "new line" is meaningless in this context.
This commit is contained in:
parent
0f0279bd3f
commit
7fc8e278ed
4 changed files with 131 additions and 23 deletions
26
man/tio.1
26
man/tio.1
|
|
@ -1,4 +1,4 @@
|
|||
.TH "tio" "1" "June 2018"
|
||||
.TH "tio" "1" "July 2021"
|
||||
|
||||
.SH "NAME"
|
||||
tio \- a simple TTY terminal I/O application
|
||||
|
|
@ -56,6 +56,11 @@ option is provided, tio will exit if the device is not present or an established
|
|||
|
||||
Enable local echo.
|
||||
|
||||
.TP
|
||||
.BR \-t ", " "\-\-timestamp
|
||||
|
||||
Prefix each new line with a timestamp.
|
||||
|
||||
.TP
|
||||
.BR \-l ", " "\-\-log " \fI<filename>
|
||||
|
||||
|
|
@ -86,10 +91,21 @@ Map NL to CR-NL on output.
|
|||
If defining more than one flag, the flags must be comma separated.
|
||||
.RE
|
||||
|
||||
.TP
|
||||
.BR \-x ", " \-\-hex
|
||||
|
||||
Start in hexadecimal mode.
|
||||
|
||||
.TP
|
||||
.BR \-\-newline-in-hex
|
||||
|
||||
Interpret new line characters ('\\r', '\\n') in hexadecimal mode.
|
||||
|
||||
.TP
|
||||
.BR \-v ", " \-\-version
|
||||
|
||||
Display program version.
|
||||
|
||||
.TP
|
||||
.BR \-h ", " \-\-help
|
||||
|
||||
|
|
@ -126,6 +142,14 @@ Toggle RTS
|
|||
.IP "\fBctrl-t v"
|
||||
Show version
|
||||
|
||||
.SH "HEXADECIMAL MODE"
|
||||
.TP
|
||||
In hexadecimal mode each incoming byte is printed out as a hexadecimal value.
|
||||
.TP
|
||||
By default there is \fBno new line\fR in this mode, but it can be turned on using the \fB--newline-in-hex\fR option.
|
||||
.TP
|
||||
Bytes can be sent in this mode by typing the \fBtwo-character hexadecimal\fR representation of the value, e.g.: to send \fI0xA\fR you must type \fI0a\fR or \fI0A\fR.
|
||||
|
||||
.SH "EXAMPLES"
|
||||
.TP
|
||||
Typical use is without options. For example:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue