aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usage.c2
-rw-r--r--uxd.110
-rw-r--r--uxd.rst4
3 files changed, 15 insertions, 1 deletions
diff --git a/usage.c b/usage.c
index 57343fa..cf7e1da 100644
--- a/usage.c
+++ b/usage.c
@@ -13,6 +13,8 @@ char *usage_opts[] = {
" -r: don't highlight multi-byte chars in reverse video.",
" -s pos: seek in input before dumping (-pos = seek back from EOF).",
" -S pos: like -s, but also sets -o so addresses start at 0.",
+ " -t: put terminal in utf-8 mode.",
+ " -T: put terminal in utf-8 mode, and leave it that way on exit.",
" -u: uppercase hex digits.",
" -v, --version: print version of uxd.",
" -w: WTF-8 mode (allow surrogates).",
diff --git a/uxd.1 b/uxd.1
index 1d78e6c..efb439f 100644
--- a/uxd.1
+++ b/uxd.1
@@ -27,7 +27,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
-.TH "UXD" 1 "2024-12-21" "0.3.0" "Urchlay's Utilities"
+.TH "UXD" 1 "2024-12-22" "0.3.0" "Urchlay's Utilities"
.SH NAME
uxd \- UTF-8 hex dumper
.SH SYNOPSIS
@@ -207,6 +207,10 @@ option also takes the terminal out of UTF\-8 mode before \fBuxd\fP exits,
on the theory that you won\(aqt need this option if the terminal is normally
running in UTF\-8 mode. If this assumption turns out to be wrong, you can
use the \fB\-T\fP option instead.
+.UNINDENT
+.\" put terminal in utf-8 mode.
+.
+.INDENT 0.0
.TP
.B \-T
Same as \fB\-T\fP, but leaves the terminal in UTF\-8 mode on exit. Can be
@@ -221,6 +225,10 @@ uxd \-T \-dd
.fi
.UNINDENT
.UNINDENT
+.UNINDENT
+.\" put terminal in utf-8 mode, and leave it that way on exit.
+.
+.INDENT 0.0
.TP
.B \-u
Use uppercase hex digits \fIA\-F\fP\&. Default is lowercase.
diff --git a/uxd.rst b/uxd.rst
index ca19c9a..16a6a37 100644
--- a/uxd.rst
+++ b/uxd.rst
@@ -169,12 +169,16 @@ as *K*, *M*, and *G* for power-of-10 based (e.g. *1K* is 1000 bytes).
running in UTF-8 mode. If this assumption turns out to be wrong, you can
use the **-T** option instead.
+.. put terminal in utf-8 mode.
+
-T
Same as **-T**, but leaves the terminal in UTF-8 mode on exit. Can be
used to recover from a previous misuse of **-t**, like so::
uxd -T -dd
+.. put terminal in utf-8 mode, and leave it that way on exit.
+
-u
Use uppercase hex digits *A-F*. Default is lowercase.