Commit Graph
19282 Commits
Author SHA1 Message Date
nhmall b4f28edfe4 some malloc() 2026-05-11 11:33:15 -04:00
nhmall a5a4bc6b4a remove an outdated file that brought a complaint
All the files in outdated are mostly source as they were prior to
the move to the outdated part of the NetHack tree. They are left
there in case somone wants to try to resurrect a port.

They are not meant to be compiled, or used as-is.
2026-05-11 06:38:11 -04:00
nhmall a583201f15 check malloc() return in bmp2iff_host.c 2026-05-11 06:34:20 -04:00
nhmall 16986710d5 follow-up grammar 2026-05-10 23:23:17 -04:00
nhmall 430c84aef7 catch up fixes5-0-1.txt 2026-05-10 23:21:34 -04:00
nhmall f10fe47505 dat/history sync with Guidebook 2026-05-10 22:58:47 -04:00
nhmall 610bd839ee update the code for portable Windows configuration
Restrict which options in sysconf will be processed
when seeking PORTABLE_DEVICE_PATHS.
2026-05-10 21:11:17 -04:00
nhmall 2337a2bae5 Windows follow-up
Remove some unused temporary code
2026-05-10 16:04:09 -04:00
nhmall 745c7fb8d8 some windows fixes
Resolves #1526
2026-05-10 16:00:33 -04:00
nhmall 9d5b02d912 NetHack 5.0.0 packaging error from visual studio
A remnant hard-coded 370 was in package.nmake.

Note: The errant file was not used to construct the official
binaries. Those were done using sys/windows/Makefile.nmake.

Closes #1525
2026-05-10 14:43:26 -04:00
nhmall 5cf9086c84 Windows: don't demand keypress on intentional exit 2026-05-10 12:10:26 -04:00
nhmall aa63616118 spelling correction 2026-05-10 11:36:43 -04:00
nhmall f64b996899 optional package sequencer for building binary
Add Makefile support for an optional AMIGPKGSEQ to
append a suffix to the Amiga binary, without having to
rename the zip file manually after the
    make CROSS_TO_AMIGA=1 package
step.
2026-05-10 10:33:20 -04:00
nhmall edafe39f5d add awareness of possible updated binary with numeric suffix
Close #1514
2026-05-10 09:07:10 -04:00
nhmall 029ed6eabd Merge branch 'amiga-menu-glyphs' of https://github.com/ingpaschke/NetHack into NetHack-5.0 2026-05-10 08:50:38 -04:00
nhmall ce92a979dd Merge branch 'linux-tty-cflags' of https://github.com/torakoya/NetHack into NetHack-5.0 2026-05-10 08:48:30 -04:00
Ingo Paschke c1ae9d5d8c Amiga: restore glyph icons in menus
Core changes routed transient inventory away from WIN_INVEN, so the
port's win == WIN_INVEN gate stopped matching and glyphs vanished.
Track has_glyphs on the menu and key rendering and sizing off that.
2026-05-09 17:11:33 +02:00
nhw_cron 13bbbf6a13 This is cron-daily v1-May-7-2026. 005guidebook updated: doc/Guidebook.txt 2026-05-07 23:25:42 -04:00
nhw_cron b02f28fec2 This is cron-daily v1-May-7-2026. 000files updated: Files 2026-05-07 23:25:25 -04:00
nhw_cron 669e44c670 This is cron-daily v1-May-7-2026. 005manpages updated: makedefs.txt 2026-05-07 23:25:06 -04:00
nhw_cron fed12887ca This is cron-daily v1-May-7-2026. 005manpages updated: mnh.txt 2026-05-07 23:24:48 -04:00
nhw_cron 3f02b77f2e This is cron-daily v1-May-7-2026. 005manpages updated: nethack.txt 2026-05-07 23:24:35 -04:00
nhw_cron 92734c3283 This is cron-daily v1-May-7-2026. 005manpages updated: recover.txt 2026-05-07 23:24:22 -04:00
nhmall 4938a85068 relocate Contributing.md to the root 2026-05-07 11:40:14 -04:00
nhmall 39f31a8f06 fix a CROSS_TO_WASM=1 build issue 2026-05-07 10:43:24 -04:00
Yoichiro Takahashi 4a4b4498a8 Respect ncurses cflags on Linux tty 2026-05-07 21:22:15 +09:00
nhmall 88bacb00c2 fixes update 2026-05-07 07:14:56 -04:00
nhmall 22009c300a update to DEVEL/Contributing.md 2026-05-07 07:11:55 -04:00
nhmall 1c1f64dc19 Issue #1521 asks for Contributing.md file
This is expected to improve and fill out over time, with more
guidelines for contributing.
2026-05-07 07:02:26 -04:00
nhmall d52b1daf50 bring fixes5-0-1.txt up to date 2026-05-07 00:23:16 -04:00
nhmall 89c6b49b0c spelling correction in nethack.6 2026-05-06 23:19:13 -04:00
nhmall 6204679bfd Guidebook type fix 2026-05-06 23:02:29 -04:00
nhmall 6ed95bebba paste error in Guidebook.tex 2026-05-06 22:58:34 -04:00
nhmall d5673a948e Merge branch 'gbr-NetHack-5.0-man-page-fixes' of https://github.com/g-branden-robinson/NetHack into g-branden-robinson-gbr-NetHack-5.0-man-page-fixes 2026-05-06 21:25:06 -04:00
nhmall dcf8752e92 Merge branch 'fix/libnh-native-build' of https://github.com/YttriumOx/NetHack into YttriumOx-fix/libnh-native-build 2026-05-06 21:07:23 -04:00
nhkeni cc4c5227af use full URL for nethack.org in Guidebook.mn 2026-05-06 16:19:02 -04:00
G. Branden Robinson 48ae0eb46e doc/nethack.6: Rewrite initial description
I noticed that the "Dungeons & Dragons" trademark acknowledgement should
be using the _registered_ trade mark sign instead of the more general
one, as the mark's enjoyed registered status (in the U.S.) since 1978.

https://tmsearch.uspto.gov/search/search-results/73123558

It occurred to me that updating the game description for a 2026 audience
might be an improvement on one that assumes the reader is familiar with
D&D, with Teletype machines ("TTYs"), and with the Rogue game, which
NetHack arguably eclipsed in notoriety decades ago.

So I rewrote it, and dropped the references to D&D.  Besides, as of
commit c99da87c70, NetHack is incompatible with "Strength Table I." in
the AD&D Player's Handbook (TSR 2010, p. 9), so any grognard who lifts
would snatch NetHack's D&D membership card away anyway.  ;-)
2026-05-06 04:53:12 -05:00
G. Branden Robinson 76303faeab doc/*.6: Use typographer's double quotes
...where available.

groff_man_style(7):

Notes
...
     • When and how should I use quotation marks?

       ... groff, Heirloom Doctools troff, neatroff, and mandoc support
       all of the special characters \[oq], \[cq], \[lq], \[rq], \[aq],
       and \[dq] described in subsection “Portability” above.  DWB, Plan
       9, and Solaris troffs do not.  Interpolating the strings \*(lq
       and \*(rq portably yields directional double quotation marks, if
       available, in all these formatters (though neatroff does not
       supply a man macro package), but they cannot reliably be used in
       macro arguments.
2026-05-06 04:53:12 -05:00
G. Branden Robinson 1d13d2ce62 doc/nethack.6: Fix markup nits
Drop unnecessary quotation marks from macro call arguments.
2026-05-06 04:53:12 -05:00
G. Branden Robinson 74a3dc9d71 doc/makedefs.6: Fix style and markup nits
* Set cross reference to "nethack" man page in lowercase, because that's
  the name under which it's installed, and POSIX systems are
  case-sensitive.
* Refer to the "nethack" command using a man page cross reference only
  on its first occurrence.
* Favor bullets over hyphens for itemized list.
* Drop explicit indentation amounts from lists.  The man(7) package's
  default suffices on all of Solaris 10, DWB 3.3, Plan 9, Heirloom
  Doctools, and GNU *roffs, and on mandoc(1).
* Use tagged paragraphs to set synopses of syntax productions used in
  the documented file format.
* Drop inset (indentation) of itemized and tagged lists; the bullets
  make the structure clear, and (with the foregoing change) this way the
  paragraphs align.
2026-05-06 04:53:12 -05:00
G. Branden Robinson 61a16e6983 doc/recover.6: Fix style and markup nits
* Identify NETHACKDIR and HACKDIR as environment variables.
* ...and set them italics, not roman.
* Set default playground directory name in italics, not roman.
* Set command names in italics.
* Refer to command operands as such, not as "options".
* Use man page cross reference on first occurrence of "nethack" when
  referring to the command executable as opposed to the overall game.
  Because some text is commented out (`ig`nored), meaning the "first"
  occurrence appears twice (what's lexically present vs. what's
  formatted) do this twice as future-proofing.
* Set file names in italics, not roman.  Set variable parts of file
  names in roman.
* Refer to "single-user systems" instead of "microcomputers"; the latter
  is becoming antiquated terminology.
* Favor present tense over future.
* Tighten wording.
* Spell "save files" consistently as two words.
2026-05-06 04:53:12 -05:00
G. Branden Robinson 2d3f9b8c21 doc/recover.6: Revise synopsis
Tighten formatting: set synopsis syntax characters adjacently to
operands.  Rename `-d` option argument from "directory" to
"playground-directory" for clarity.

Set operands more idiomatically.  They are not given in pairs; instead
"base" can be repeated arbitrarily.  See, for example, the POSIX
reference page for ls(1).
  https://pubs.opengroup.org/onlinepubs/9799919799/utilities/ls.html

Format ellipsis idiomatically.

groff_man_style(7):

Notes
       ... The idiomatic roff ellipsis is three dots (periods) with thin
       space escape sequences \| internally separating them.  Since dots
       both begin control lines and are candidate end‐of‐sentence
       characters, however, it is sometimes necessary to prefix and/or
       suffix an ellipsis with the dummy character escape sequence \&.
2026-05-06 04:53:12 -05:00
G. Branden Robinson 561d08e53b doc/*.6: Improve formatting of carets
...on typesetters and UTF-8 terminals.

groff_man_style(7):
   Portability
...
     Several special characters are also widely portable.  Except for
     \-, \[em], and \[ga], AT&T troff did not consistently define the
     characters listed below, but its descendants, like DWB, Plan 9, or
     Solaris troff, can be made to support them by defining them in font
     description files, making them aliases of existing glyphs if
     necessary; see groff_font(5).  groff’s extended notation for
     special characters, \[xx], is also supported by mandoc(1), Heirloom
     Doctools troff, and neatroff, but not DWB, Plan 9, or Solaris
     troffs.
...
     \[ha]  Basic Latin circumflex accent (“hat”).  Some output devices
            format “^” as U+02C6 (modifier letter circumflex accent).
Notes
     Some tips on composing and troubleshooting your man pages follow.
...
     • Escape sequences of the form \[xx] don’t format correctly.

       The \[xx] special character escape sequence is a GNU troff
       extension also supported by mandoc, Heirloom Doctools troff, and
       neatroff.  DWB, Plan 9, and Solaris troffs don’t implement it.
       If your man page requires portability to these formatters, spell
       such escape sequences as “\(xx”; no closing parenthesis is used.
       xx must be exactly two characters; groff_char(7) lists portable
       special character identifiers.
2026-05-06 04:53:12 -05:00
G. Branden Robinson b602b495bb doc/makedefs.6: Clarify - as option argument
Quote it, use fuller C standard I/O terminology, and use active voice.
2026-05-06 04:53:12 -05:00
G. Branden Robinson 4ab9ec36de doc/makedefs.6: Tigthen formatting
Set synopsis syntax characters adjacently to operands.
2026-05-06 04:53:12 -05:00
G. Branden Robinson bdae11c61d doc/nethack.6: Revise role info in synopsis
Revise presentation of backward-compatible role options.

- Give them a metasyntactic variable name and present them in the main
  command synopsis.

- Present the possible values in a typographical display, indented with
  filling disabled.
2026-05-06 04:53:12 -05:00
G. Branden Robinson 44c8405000 doc/nethack.6: Revise primary synopsis
Set it as a hanging paragraph, as is idiomatic for Unix command
synopses.  Tighten formatting: set synopsis syntax characters adjacently
to operands.  Also drop explicit line breaks, permitting synopsis to
exercise the configured line length of the selected output device.

Temporarily disable adjustment in a manner more friendly to the system's
(or user's) configuration.[1]  Stop attempting to manipulate
hyphenation; there's no portable way to do that.[2]

Before and after, as rendered with Solaris 10, DWB 3.3, and Plan 9
troffs:

-     nethack [ -d|--directory directory ] [ -w|--windowtype
-     interface ]
-     [ --nethackrc:rc-file | --no-nethackrc ] [ -n ] [ -dec |
-     -ibm ]
-     [ -u player-name ] [ -X | -D ] [ -p profession ] [ -r race ]
-     [ -@ ]
+     nethack [-d|--directory directory]
+          [-w|--windowtype interface]
+          [--nethackrc:rc-file|--no-nethackrc] [-n] [-dec|-ibm]
+          [-u player-name] [-X|-D] [-p profession] [-r race] [-@]

Not shown: Literal text is in bold, and option arguments in italics.

(Full disclosure: The aforementioned formatters use different page
offsets [left margin sizes], and Plan 9 nroff doesn't render _any_
typeface changes, ever, for any document using any macro package.)

Before and after, as rendered with groff, mandoc, and Heirloom Doctools
troff:

-       [ --nethackrc:rc-file | --no-nethackrc ] [ -n ] [ -dec | -ibm ]
-       [ -u player-name ] [ -X | -D ] [ -p profession ] [ -r race ] [ -@ ]
+       nethack [-d|--directory directory] [-w|--windowtype interface]
+              [--nethackrc:rc-file|--no-nethackrc] [-n] [-dec|-ibm]
+              [-u player-name] [-X|-D] [-p profession] [-r race] [-@]

(Full disclosure: groff 1.24.x man(7) uses a default line length of
80n,[3] up from the 78n of its previous releases going back to 2002, and
used by Heirloom Doctools and mandoc.)

[1] https://cgit.git.savannah.gnu.org/cgit/groff.git/tree/tmac/an.tmac?h=1.24.1#n159
[2] https://cgit.git.savannah.gnu.org/cgit/groff.git/tree/tmac/an.tmac?h=1.24.1#n202
[3] https://cgit.git.savannah.gnu.org/cgit/groff.git/tree/NEWS?h=1.24.1#n509
2026-05-06 04:53:12 -05:00
G. Branden Robinson e4476516cd doc/nethack.6: Revise scoreboard mode synopsis
Set it as a hanging paragraph, as is idiomatic for Unix command
synopses.  Tighten formatting: set synopsis syntax characters adjacently
to operands.  Since viewing the scoreboard is a separate mode of
operation, arrange first the options that select this mode.[1]  Also
drop explicit line breaks, permitting synopsis to exercise the
configured line length of the selected output device.

Before and after, as rendered with Solaris 10 troff:

-     nethack [ -d|--directory directory ] -s|--scores [ -v ]
-     [ -p profession ] [ -r race ] [ player-name ...]
+     nethack {-s|--scores} [-d|--directory directory] [-v]
+          [-p profession] [-r race] [player-name ...]

Before and after, as rendered with groff, mandoc, and Heirloom Doctools
troff:

-     nethack [ -d|--directory directory ] -s|--scores [ -v ]
-     [ -p profession ] [ -r race ] [ player‐name ...]
+     nethack {-s|--scores} [-d|--directory directory] [-v] [-p profession]
+            [-r race] [player‐name ...]

Not shown: Literal text is in bold, and option arguments in italics.

[1] See, for example,
<https://pubs.opengroup.org/onlinepubs/9799919799.2024edition/utilities/compress.html>.
2026-05-06 04:53:12 -05:00
G. Branden Robinson 2011f8b4c1 doc/nethack.6: Split non-playing synopses
The `--showpaths` and `--version` options can't be (usefully) combined
with `--usage` or `--help`, nor with each other.
2026-05-06 04:53:12 -05:00
G. Branden Robinson 2b4b589a63 doc/nethack.6: Spell option argument as "rc-file"
...that is, not in capitals.  Lowercase seems more consistent with Unix
practice.
2026-05-06 04:53:12 -05:00