Jump to content
IGNORED

Sparta Commander Option To Stop Press Space Prompt


Paul Hocker

Recommended Posts

I am not aware that this is possible.  But - there are built in (and configurable) viewer and editors for text files.  When using these, and exiting them, you get taken right back to the SC shell.  What are you doing that is giving you the "press space to continue" prompt?

Link to comment
Share on other sites

It seems like anything I do in SC, after it completes asks me to press the space key. Doing a DIR command, viewing a file. Quite irritating actually. Here are some screenies.

 

Perhaps it is a Sparta setting in general?

 

First one after starting it

 

image.thumb.png.35110f68917769b91d3c206ae670ee04.png

 

After viewing a file

 

image.thumb.png.8f923d2f11c5a97df7ef7aa467f8a1d9.png

 

after doing a DIR command

 

image.thumb.png.f21108a25628e375b4389ecf97b5f08f.png

 

Thanks for the help.

Link to comment
Share on other sites

58 minutes ago, Mark loves Stella said:

For the first screen loading the ramdisk, edit your CONFIG.SYS file and add a (, Y) to the SCMAIN.OVL line.  Mine reads: SET SC=D1:\SCMAIN.OVL, Y

That cleared up the initial prompt, which is awesome, thank you. Still get that nagging press space key tho. 

 

I had mine on D5 so I had to change the SET command to this.

 

SET SC=D5:\SCMAIN.OVL, Y

 

Edited by Paul Hocker
  • Like 2
Link to comment
Share on other sites

1 hour ago, Paul Hocker said:

Correct.

I see. 'Press Space to Continue' is presumably there to cater (in a universal manner) for other tools which don't block on a keystroke before returning to the shell (which would be almost every command line utility written for SpartaDOS). I am not sure how SC could divine whether a given tool immediately returns to DOS or not.

Link to comment
Share on other sites

they would have to be aware of each other and then either close sending a space or not ask for the space bar based on that switch or detection. I have not set my stuff up after all the goings on so I can't truly look at it. I don't do emu except for simple things.

SD already has form of identification for version etc. it's not that it isn't possible.

Maybe the simpler idea of just a switch of some kind would suffice, not sure.

Edited by _The Doctor__
Link to comment
Share on other sites

It's easy enough for a program to discern whether it's running under SpartaDOS, and thus whether it was launched from a command-line or menu-based DOS. RWTEST is a good example: when launched from a DOS other than Sparta/SDX, it presents a 'press any key to continue' prompt after presenting the benchmark results. The only way I can get RWTEST to not present that prompt under my FATFMS DOS, for example, is to spoof the SpartaDOS ID and version bytes at $70x, although this can have unwelcome side-effects if the program then thinks it can call the SDX kernel, etc.

 

The SC viewer is a special case in as much as it uses the 'LESS' viewer, which is a self-contained, interactive tool which blocks regardless of whether it was launched from a shell or command line. Since the behaviour of LESS is known, I suppose SC could quite legitimately bypass the 'Press space' prompt after running it, although for all I know, the author's intention might be that the 'stock' file viewer could be supplanted by a different tool with undetermined behaviour.

Link to comment
Share on other sites

3 hours ago, flashjazzcat said:

It's easy enough for a program to discern whether it's running under SpartaDOS, and thus whether it was launched from a command-line or menu-based DOS. RWTEST is a good example: when launched from a DOS other than Sparta/SDX, it presents a 'press any key to continue' prompt after presenting the benchmark results. The only way I can get RWTEST to not present that prompt under my FATFMS DOS, for example, is to spoof the SpartaDOS ID and version bytes at $70x, although this can have unwelcome side-effects if the program then thinks it can call the SDX kernel, etc.

 

The SC viewer is a special case in as much as it uses the 'LESS' viewer, which is a self-contained, interactive tool which blocks regardless of whether it was launched from a shell or command line. Since the behaviour of LESS is known, I suppose SC could quite legitimately bypass the 'Press space' prompt after running it, although for all I know, the author's intention might be that the 'stock' file viewer could be supplanted by a different tool with undetermined behaviour.

Don't get me wrong. This is a "minor" inconvenience at best. I just felt it was strange that it did this and could not detemine if it was SDX, SC or a combination of the two. Either way, there is no option I can see to supress it. I appreciate eveyones input on this. I certainly cannot be the only person who has noticed this, or maybe many folks just don't use SC?

 

Happy belated New Year everyone!

 

Link to comment
Share on other sites

many people are silent on the forums, they often feel it's best to be quiet and listen. Don't want to complain, look like a newb, or get a tongue lashing.

 

Windows or late DOS days used to be full of it,  DO this... y/n... are you sure... y/n... doing this could cause blah blah blah... do it anyway y/n... ok press any key to continue you can't undo this.

 

:)

 

Link to comment
Share on other sites

  • 3 weeks later...
On 1/15/2023 at 5:40 PM, Paul Hocker said:

Apologies if this was discussed before but I am hoping that someone knows if there is an option to remove the "--- Press SPACE  when done ---" from happening everytime I do something with SC? I looked in the SC.INI file, but nothing stood out to me to control this. Perhaps it is not documented?

There is no such option. SC displays the prompt you are talking about when, while reloading the SC after a program's termination, the cursor is not in the HOME position (i.e. when the cursor's X position is different than LMARGN, or the cursor's Y position is not 0). This means that the program has displayed something and SC makes it possible for the user to read (as already pointed out). Otherwise - when the cursor is in the HOME position - the SC goes on to display its panels immediately without holding the screen.

 

The VIEW function uses LESS.COM by default. This one - and also XLESS, which can be used instead - block the screen when the file to be displayed does not entirely fit on the screen (i.e. has more than 22 lines, IIRC). Otherwise - when the text is short and does fit on the screen - both viewers do not hold the screen and return immediately to the shell.

 

The SC has no way to know, if the screen was being held by the viewer while displaying the file, thus, when the viewer exits, the SC behaves as described above, i.e. holds the screen when the cursor is not in the HOME position etc.

 

On 1/16/2023 at 8:33 PM, flashjazzcat said:

The only way I can get RWTEST to not present that prompt under my FATFMS DOS, for example, is to spoof the SpartaDOS ID and version bytes at $70x, although this can have unwelcome side-effects if the program then thinks it can call the SDX kernel, etc.

Oups. Indeed. I will have to fix that.

  • Like 3
Link to comment
Share on other sites

On 1/16/2023 at 8:33 PM, flashjazzcat said:

The only way I can get RWTEST to not present that prompt under my FATFMS DOS, for example, is to spoof the SpartaDOS ID and version bytes at $70x, although this can have unwelcome side-effects if the program then thinks it can call the SDX kernel, etc.

Fixed, I think.

rwtest.co_

  • Like 2
  • Thanks 1
Link to comment
Share on other sites

46 minutes ago, drac030 said:

Fixed, I think.

Fantastic - thanks! :)

 

Does this depend on any particular DOS ID, or is it generating the prompt only when a specific non-CLI DOS is sensed?

 

I noticed a while ago that another useful tool - RWCRC - can't be 'spoofed' with SD ID bytes, since when it senses them, it calls the kernel (for formatted numeric output?), and quite understandably crashes. If the same change can be made there, it would be most welcome.

Edited by flashjazzcat
Link to comment
Share on other sites

It depends on the OSS CLI interface having been detected or not.

 

On 2/5/2023 at 10:38 PM, flashjazzcat said:

RWCRC - can't be 'spoofed' with SD ID bytes, since when it senses them, it calls the kernel (for formatted numeric output?), and quite understandably crashes

If it crashes, this cannot be the cause, because I cannot see the program making any SDX-specific calls under any circumstances. Besides, you can always "spoof" SpartaDOS 3.

rwcrc.co_

  • Thanks 1
Link to comment
Share on other sites

9 hours ago, drac030 said:

It depends on the OSS CLI interface having been detected or not.

Ah - thanks!

9 hours ago, drac030 said:

If it crashes, this cannot be the cause, because I cannot see the program making any SDX-specific calls under any circumstances. Besides, you can always "spoof" SpartaDOS 3.

Which is exactly what I did (spoof SpartaDOS 3), but although this worked with RWTEST, RWCRC (now that I actually look properly into it with the Altirra debugger) spins endlessly looking for $9B at the end of the arg buffer (which corresponds to the 28-byte COMFNAM buffer in Sparta), since I happened to terminate the string with $00 instead. I guess I should change this for compatibility reasons.

 

Thanks so much for the amended RWCRC, anyway. It works perfectly without the Sparta 3.x spoofing.

RWCRC.thumb.png.ce0fc175329d8b360ebd5bd5efdbc154.png

Now I suppose I should address the issue of such tools, when launched directly from the SIDE3 loader, returning immediately to the loader without waiting for a keystroke (by obfuscating the OSS CLI interface, I suppose, at least until such time as the loader is capable of passing parameters directly to the launched application via said CLI interface).

  • Like 1
Link to comment
Share on other sites

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...