skx / cpmulator

Golang CP/M emulator for zork, Microsoft BASIC, Turbo Pascal, Wordstar, lighthouse-of-doom, etc
MIT License
98 stars 3 forks source link

Allow determining console size #116

Closed skx closed 4 months ago

skx commented 4 months ago

I recently wrote a simple "file manager", or "file utility", which shows lists of files and allows them to be deleted, navigated, filtered etc:

The early versions drew a border around the screen and I assumed 25x80 for dimensions. It seems like adding a custom BIOS function to get the terminal width, and height, would be useful.

None-portable, of course, as all our extensions are. But in the worst case falling back to 80x25 works well enough.

Add a single call to return values in HL, I guess.