ENDOOM

ENDOOM is the colorful screen shown when Doom exits. Note that ZDoom and some other ports do not show ENDOOM, and authors of modern WADs often do not bother to include replacement ENDOOM lumps.

ENDOOM consists of 4,000 bytes representing a 80 by 25 block of text. Each character on the screen takes up two bytes in the resource: the first byte gives color information, while the second byte is simply the character's 8-bit ASCII value. This means that the line-drawing characters in the extended ASCII character set can be used.

The first byte is further broken down into three pieces. Bits 0-3 give the foreground color, 4-6 give the background color, and bit 7 is a flag that tells whether the character should blink. The colors are standard ANSI colors used by DOS. The reason why the foreground has an extra bit is because the higher colors are all bright, and the background is restricted to display darker colors only. So the first eight colors can be used for anything, the last eight colors can be used for the foreground only.

Background and foreground:

Foreground only:

This information is from the Unofficial Doom Specs and the DOS "color" command.