Closed venomix666 closed 6 months ago
Not sure why the automated tests fail, from the log it seems to be an issue with MAME and ALSA and not related to this commit.
I like that! Also, I concur with the mame tests --- I think it's trying to connect to a non-existent sound device; something must have changed on the CI machines. I'll fix it.
The screen driver is used by CCP to find how many filenames can be printed per line, so that the screen real estate is used more efficiently on systems with more than 40 columns. If no screen driver is found it defaults to 2 files per line as before.
In order to support loading drivers with a different number of columns (e.g. tty80drv on the Atari 800) the screen driver is checked every time the dir command is run.
See the screenshots below for the results with 40 columns, 80 columns, 64 columns and with no screen driver:
Atari 800 40 columns:![atari800_40col](https://github.com/davidgiven/cpm65/assets/106430829/3cc40858-e7f1-44b0-93a1-014ec57ff01a)
Atari 800 80 columns:![atari800_80col](https://github.com/davidgiven/cpm65/assets/106430829/8b7aeef0-5794-430a-a61e-1ae05a357e61)
BBC Micro 40 columns:![bbcmicro_40col](https://github.com/davidgiven/cpm65/assets/106430829/3452f607-9910-4a43-91aa-77d1412cf6ef)
BBC Micro 80 columns:![bbcmicro_80col](https://github.com/davidgiven/cpm65/assets/106430829/d14a68f8-0e9b-4930-b4cc-48b216776b42)
My homebrew computer with 64 columns:![daimx_64col](https://github.com/davidgiven/cpm65/assets/106430829/79b47184-d5c3-4297-9994-f8adcfd3c95b)
C64 with no screen driver:![C64_no_screendriver](https://github.com/davidgiven/cpm65/assets/106430829/7282c7aa-0ed0-43e1-91ee-61b86f82db1f)