OTRADER.EXE Patch Notes
Outpost Trader v1.0 (1994) - Modern Terminal Compatibility Fix
==============================================================

BACKGROUND
----------
OTRADER.EXE was originally compressed with PKLITE v1.12 -e (extra compression).
The file was first decompressed using UNP 4.11 by Ben Castricum, expanding from
460,409 bytes to 565,160 bytes. The decompressed EXE runs identically to the
original - DOS does not require EXEs to be packed.

The game was written in 1994 for DOS terminals which render all 256 CP437
characters as display glyphs. Modern terminals (SyncTERM, NetRunner, etc.)
follow stricter terminal standards where bytes in the C0 range (0x00-0x1F)
and C1 range (0x80-0x9F) are interpreted as control codes rather than
display characters, causing display corruption.

PROBLEMS IDENTIFIED
-------------------
1. Three occurrences of truncated ANSI escape sequences: ESC[0 followed
   immediately by ESC[40m, with the 'm' terminator missing from the first
   sequence. Modern terminals printed the ESC as a visible CP437 left-arrow
   character (←) followed by literal "[0" text on the status bar line.

2. The status bar was shifted one column to the right due to the fix
   applied for problem 1 (see below).

PATCHES APPLIED (3 total, 6 bytes changed)
-------------------------------------------
All three patches fix the same pattern: ESC[0 ESC[40m -> ESC[0;40m NUL

The two sequences were combined into one valid sequence. A NUL byte (0x00)
was used as padding to maintain the original byte count since NUL is
universally ignored by all terminals.

  Offset 0x0181E2: 1B 5B 30 1B 5B 34 30 6D -> 1B 5B 30 3B 34 30 6D 00
  Offset 0x018236: 1B 5B 30 1B 5B 34 30 6D -> 1B 5B 30 3B 34 30 6D 00
  Offset 0x018278: 1B 5B 30 1B 5B 34 30 6D -> 1B 5B 30 3B 34 30 6D 00

  (An earlier revision used 0x20 space as padding instead of 0x00 NUL,
  which caused the status bar to shift one column right. The NUL revision
  corrects this.)

FILE INFO
---------
Original OTRADER.EXE (packed):   460,409 bytes
Patched OTRADER.EXE (unpacked):  565,160 bytes
Compression:  PKLITE v1.12 -e (PKWARE Inc.)
Unpacker:     UNP 4.11 by Ben Castricum
Game:         Outpost Trader v1.0, (c) 1994
