This repository has been archived by the owner on May 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for DEC graphic set from NetHack.
NetHack allows you to use the DEC graphics set to render the dungeon (https://nethackwiki.com/wiki/DECgraphics). Since DEC graphics mode is toggled on and off with ESC ( 0, ESC ( B respectively, we add a new 'state' to tmt to indicate when ESC ( have been pressed. Normally anything following this sequence is ignored, anyway. Each character then saves whether it was written in DEC mode or not, in attributes. While this would not work for a general DEC parser (since some DEC characters include whitespace/new lines etc that would not have been interpretted correctly by the terminal emulator - cf https://en.wikipedia.org/wiki/DEC_Special_Graphics) in this case this is fine because NetHack only uses DEC graphics for rendering particular glyphs (as suggested in the NetHack Wiki, and as suggested in paxed/dgamelaunch scriptfor stripping gfx). A test is added to check rendering.
- Loading branch information
Showing
7 changed files
with
59 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
It is written in the Book of Amaterasu Omikami: | ||
|
||
After the Creation, the cruel god Moloch rebelled | ||
against the authority of Marduk the Creator. | ||
-------------- Moloch stole from Marduk the most powerful of all | ||
.............| the artifacts of the gods, the Amulet of Yendor, | ||
|d..........{| and he hid it in the dark cavities of Gehennom, the | ||
|...........d| Under World, where he now lurks, and bides his time. | ||
|..........@.. | ||
---------+---- Your goddess Amaterasu Omikami seeks to possess the Amulet, and with it | ||
to gain deserved ascendance over the other gods. | ||
|
||
You, a newly trained Hatamoto, have been heralded | ||
from birth as the instrument of Amaterasu Omikami. You are destined | ||
to recover the Amulet for your deity, or die in the | ||
attempt. Your hour of destiny has come. For the sake | ||
of us all: Go bravely with Amaterasu Omikami! | ||
--More-- | ||
|
||
|
||
|
||
|
||
[CodeMagic the Hatamoto ] St:16 Dx:14 Co:17 In:11 Wi:9 Ch:7 Lawful | ||
Dlvl:1 $:0 HP:15(15) Pw:2(2) AC:4 Xp:1 T:1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters