From 173f0d3f70f6b195ad1ace58030f8483009d6bc4 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sat, 13 Jul 2024 18:38:45 -0400 Subject: listbas: add -l option, fix option lists in help output and man page. --- listbas.1 | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'listbas.1') diff --git a/listbas.1 b/listbas.1 index baf8847..9e458a5 100644 --- a/listbas.1 +++ b/listbas.1 @@ -32,7 +32,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] listbas \- List the source of a tokenized Atari 8-bit BASIC program .SH SYNOPSIS .sp -listbas [\fB\-v\fP] [\fB\-i\fP] [\fB\-b\fP] [\fB\-d\fP ] [\fB\-a\fP | \fB\-m\fP ] \fBinput\-file\fP +listbas [\fB\-a\fP | \fB\-d\fP | \fB\-m\fP | \fB\-x\fP | \fB\-U\fP] [\fB\-b\fP] [\fB\-u\fP] [\fB\-i\fP] [\fB\-l\fP] [\fB\-n\fP | \fB\-C\fP] [\fB\-v\fP] [\fB\-c\fP \fIcolors\fP] \fBinput\-file\fP .SH DESCRIPTION .sp \fBlistbas\fP acts like the \fILIST\fP command in BASIC. It reads a @@ -80,6 +80,9 @@ because you can\(aqt tell what the dots are supposed to represent. .B \fB\-i\fP Include the immediate mode command (line 32768) in the output. .TP +.B \fB\-l\fP +Do not print line numbers. +.TP .B \fB\-C\fP Enable color syntax highlighting. This option is enabled by default; the \fB\-C\fP option is provided so you can override \fB\-n\fP in @@ -269,6 +272,15 @@ on variable\-protected programs. .sp \-\- .sp +The color and inverse/bold/underline support assumes your terminal supports +ANSI/VT220 escape codes... but it does \fInot\fP use \fBcurses\fP(3X) or +\fBterminfo\fP(5), or even look at \fBTERM\fP in the environment. It just +blindly emits the escape codes. Likewise, Unicode characters are printed +in UTF\-8 encoding, without actually checking whether the terminal or the +current locale supports UTF\-8. +.sp +\-\- +.sp I thought about adding an HTML output option, but there\(aqs no need: if you want a colorful listing of an Atari BASIC program, install \fBaha\fP(1) from \fI\%https://github.com/theZiz/aha\fP (or your distro\(aqs package repo) and run -- cgit v1.2.3