fix github issue 361 to make user_sounds useful even if MSGTYPE is hidden

fixes #361

Also, experminental introduction of vt_sounddata to enable tty to pass
a sound file index to the terminal side of things where perhaps someone
can add code to something like hterm to take the information relayed by
NetHack to trigger user_sounds locally even if playing on a server.

Compile time option TTY_SOUND_ESCCODES required to build that support in.

It should be independent of TTY_TILE_ESCCODES.
This commit is contained in:
nhmall
2020-07-02 15:49:45 -04:00
parent 3a94f0a9f8
commit e4b18f0545
13 changed files with 151 additions and 32 deletions

View File

@@ -35,7 +35,7 @@
.ds vr "NetHack 3.7
.ds f0 "\*(vr
.ds f1
.ds f2 "June 20, 2020
.ds f2 "July 2, 2020
.
.\" A note on some special characters:
.\" \(lq = left double quote
@@ -4662,6 +4662,8 @@ the pattern to match;
the sound file to play;
.PL volume
the volume to be set while playing the sound file.
.PL "vt_sounddata index"
optional - the index corresponding to a sound file;
.PE
.lp ""
The pattern should be a POSIX extended regular expression.