Jump to content
IGNORED

GET K$ usable with CAT command in a program?


Recommended Posts

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.

 

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...