|
| General initialisation
|

Set NetHack$Dir <Obey$Dir>

| This is where nethack looks for all its data files. If you change this, make sure to change the value in !Boot, too.
Set NetHack$Playground <NetHack$Dir>.Playground


|
| Termcap setup
|

| Now attempts to restore old values of UnixFS$/etc, TERM, and UnixEnv$TERM on exit
Set NetHack$OldEtc <UnixFS$/etc>
Set NetHack$OldTerm <TERM>
Set NetHack$OldTerm2 <UnixEnv$TERM>

| We need to set UnixFS$/etc so that UnixLib knows where to find the custom termcap file NetHack uses
Set UnixFS$/etc <NetHack$Dir>

| This version of nethack is hardwired to use the acorn15 termcap by default ...
Unset TERM
Unset UnixEnv$TERM
| ... so if you want to use mode 28, then uncomment the next line
|set TERM acorn28
| ... and change the next from echo <22><15> to echo <22><28>
Echo <22><15>

| Now load the IBM graphics characters
Run <NetHack$Dir>.IBMfont


|
| Launch the game!
|

wimpslot -min 2048k -max 2048K
Run <NetHack$Dir>.nethack %*0

| On exit reset the character definitions to remove the IBM chars
fx 25,0

| And reset the termcap options
Set UnixFS$/etc <NetHack$OldEtc>
Set TERM <NetHack$OldTerm>
Set UnixEnv$TERM <NetHack$OldTerm2>
