From afeec3dd651cbcd0c749bb53a25cdccd319329fc Mon Sep 17 00:00:00 2001 From: "G. Branden Robinson" Date: Sun, 3 May 2026 01:40:41 -0500 Subject: [PATCH] doc/nethack.6: Be more portable to old roffs (2/4) Old *roffs don't support the `ti` special character. Compensate. Before (DWB, Solaris 10): The --nethackrc:RC-file option will use RC-file instead of the default run-time configuration file (typically /.nethackrc) and the --no-nethackrc option can be used to skip any run-time configuration file. Before (Plan 9): The --nethackrc:RC-file option will use RC-file instead of the default run-time configuration file (typically ti/.nethackrc) and the --no-nethackrc option can be used to skip any run-time configuration file. After (all): The --nethackrc:RC-file option will use RC-file instead of the default run-time configuration file (typically ~/.nethackrc) and the --no-nethackrc option can be used to skip any run-time configuration file. --- doc/nethack.6 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/nethack.6 b/doc/nethack.6 index d25f09a0d..061092fb6 100644 --- a/doc/nethack.6 +++ b/doc/nethack.6 @@ -16,6 +16,12 @@ .ie \n(.g .hy 12 .el .hy 14 .ds Na Robert Patrick Rankin +.\" DWB, Solaris 10, and Plan 9 troffs don't support `\(ti`. Assume the +.\" best, then detect these older troffs and fall back as needed. +.\" +.\" Put NO SPACE between special character and comment escape sequences. +.ds ~ \(ti\" The name "ti" is taken by *roff's `ti` request. +.if !\n(.g .ds ~ ~ .\" Define string to exercise groff's hyphenless break point feature. .ie \n(.g .ds : \: .el .ds : \" empty @@ -368,7 +374,7 @@ The option will use .I RC-file instead of the default run-time configuration file -.RI "(typically " \(ti/.nethackrc ")" +.RI "(typically " \*~/.nethackrc ")" and the .B \-\-no\-nethackrc option can be used to skip any run-time configuration file.