diskio read & write routines now always reset the io channels back to the defaults before returning

This means you don't have to call CLRCHN yourself anymore inbetween if you want to do screen output or keyboard input while a file is open
This commit is contained in:
Irmen de Jong
2024-12-03 22:51:56 +01:00
parent 25b1043572
commit 565973c520
5 changed files with 30 additions and 17 deletions

View File

@@ -525,11 +525,6 @@ to see what's in there. (Note: slight variations for different compiler targets)
You can set the active disk drive number, so it supports multiple drives, just one at a time.
It does not support reading from more than one file or writing to more than one file at a time.
.. note::
If you want to print text to the screen, or do keyboard input, while reading or writing an open file is in progress,
you should use ``cbm.CLRCHN()`` before doing so. This resets the default i/o channels to screen and keyboard.
Diskio itself is smart enough to set them back to whatever is needed to continue reading/writing with the ``f_read`` or ``f_write`` routines.
.. attention::
Error handling is peculiar on CBM dos systems (C64, C128, cx16, PET). Read the
descriptions for the various methods in this library for details and tips.

View File

@@ -1,8 +1,6 @@
TODO
====
make a compiler switch to disable footgun warnings -ignorefootguns
update zsmkit to newest version that includes the on_deck routines when stabilized