Skip to content

ESC/P 2: EX-1000 printer, selectable paper#6770

Merged
OBattler merged 4 commits into
86Box:masterfrom
Lili1228:master
Jan 31, 2026
Merged

ESC/P 2: EX-1000 printer, selectable paper#6770
OBattler merged 4 commits into
86Box:masterfrom
Lili1228:master

Conversation

@Lili1228

Copy link
Copy Markdown
Contributor

Summary

EX-1000 is a superset of FX-80, the only Epson printer available OOTB on Windows 1.03. These two, along with 6 other early printers, have two ESC commands that were removed in later models: ESC i and ESC j. Thus, it makes sense to make a printer version selectable.
There are 4 main versions, each slightly backwards-incompatible. The dropdown so far lists two entries: EX-1000 and ESC/P 2. There's some code for other 9-pin and 24-pin ESC/P printers but it's currently commented-out.

There are four paper sizes to choose from: Letter, A4, Legal and B4. The latter two are sideways as that's what the manual for EX-1000 suggests. To use it properly on Windows 95, dimensions need to be specified manually (width 3530 * 0.1 mm, height 250 * 0.1 mm) and, to print with the longer side being vertical, orientation needs to be set to horizontal.
20260131-213022-115

While filtering the commands per printer type, I realized there are some for IBM Proprinter II. Since I didn't quite know what to do about these without implementing that printer, it's limited to ESC/P 2 printer.

Remaining things to do regarding EX-1000:

  • ESC i (non-intermediate mode, requires setting a buffer for a line), DEL, CAN
  • ESC I, m (requires making a font that shows non-printable characters like NUL; ESC m isn't a part of EX-1000)
  • ESC %, &, : (not much sense in custom characters before that font is done first)

Checklist

  • I have tested my changes locally and validated that the functionality works as intended

References

https://files.support.epson.com/pdf/general/escp2ref.pdf
https://archive.org/details/ex800ex1000
https://files.support.epson.com/pdf/ex800_/ex800_u1.pdf

The four versions are:
- EX-1000 and 7 other early printers (including FX-80, the only Epson
  available OOTB for Windows 1.03), have ESC i and ESC j.
- 9-pin ESC/P, a superset of EX-1000 besides ESC i and ESC j.
- 24-pin ESC/P in 360 DPI instead of 240.
- ESC/P 2 with raster graphics.

As for paper, four sizes: Letter, A4, Legal, B4. The former ones are
mainly for EX-800, the latter two are sideways and meant for EX-1000.

I did some other minor changes, like converting a bunch of defines to enum.
Also removed forward declarations.
@OBattler OBattler merged commit 8364d69 into 86Box:master Jan 31, 2026
44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants