newTIboyRob Posted August 7, 2023 Share Posted August 7, 2023 So if the CAT command is entered and there are a lot of files on a disk, they go whizzing down pretty fast. I've been using CONTROL-S as the pause to see what files were on the disk till the bottom of the screen and then do that again to continue their listing. I know that GET K$, (for example) in a basic program is used to wait for a key press, then once pressed, the program will continue. Just wondering if there is a way, within that basic program, to have the CAT start to list the files, e.g. 10 PRINT CHR$(4);"CAT", but then have the pause concept via GET K$ interrupt the CAT command, pausing to stop any further file listings (should there be any) once it reaches say, the bottom of the screen? Does anyone know if that works? (Usually I just run the CAT command outside of a basic program to see what's on the disk and do the aforementioned CNTRL S, but I have a program or 2 that have the CAT command- which I would like to interrupt- within the program via the GET K$ then continue with a key press. Quote Link to comment https://forums.atariage.com/topic/353667-get-k-usable-with-cat-command-in-a-program/ Share on other sites More sharing options...
The Usotsuki Posted August 7, 2023 Share Posted August 7, 2023 It's going to require opening the directory as a file, but it can be done. Quote Link to comment https://forums.atariage.com/topic/353667-get-k-usable-with-cat-command-in-a-program/#findComment-5295743 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.