English Amiga Board


Go Back   English Amiga Board > Support > support.AmigaOS

 
 
Thread Tools
Old 07 September 2023, 05:20   #1
amigavision
Registered User
 
Join Date: May 2023
Location: World
Posts: 5
Suppressing/skipping C:Format confirmation

For context, we are the maintainers of the open source AmigaVision project, a script that will take a set of WHDL files and generates the ultimate Amiga game and demo scene setup. It started out as a project for MiSTer FPGA, but we have since added support for original hardware, Analogue Pocket and MiST FPGAs, as well as the beginnings of emulator support. (More in the link if you’re interested, including nerdy details on Pixel Aspect Ratios and Dynamic Crop)

As part of the script, we format a couple of PFS hard disk images, and we have managed to get the process to work without user input in general, but we still need the user to confirm that they want to do this when running C:Format.

Does anyone know if there’s a hidden argument we could pass to skip this? (It’s certainly not documented, we looked!)

Or maybe someone has disassembled the C:Format command and removed the check? Or are there tools on e.g. Aminet that could fulfill the same function?

Any help and pointers appreciated!
amigavision is offline  
Old 07 September 2023, 06:54   #2
Snoopy1234
Registered User
 
Snoopy1234's Avatar
 
Join Date: Apr 2022
Location: Australia
Age: 52
Posts: 906
An alternative Format utility might have available arguments to pass conformation?

http://aminet.net/search?query=+disk+Format
Snoopy1234 is offline  
Old 07 September 2023, 07:30   #3
amigavision
Registered User
 
Join Date: May 2023
Location: World
Posts: 5
Yeah, we did look into most of those, but couldn’t find anything that would do what we wanted.
amigavision is offline  
Old 07 September 2023, 08:53   #4
Snoopy1234
Registered User
 
Snoopy1234's Avatar
 
Join Date: Apr 2022
Location: Australia
Age: 52
Posts: 906
Format >:NIL Drive DF0: Name "Test" suppresses the requester but still requires a carriage return entered which might be done with some other switch or command...
Snoopy1234 is offline  
Old 07 September 2023, 08:59   #5
amigavision
Registered User
 
Join Date: May 2023
Location: World
Posts: 5
Indeed, requiring input is the problem we are trying to work around.
amigavision is offline  
Old 07 September 2023, 08:59   #6
meynaf
son of 68k
 
meynaf's Avatar
 
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,365
So basically what you want is a solution to skip the user pressing return to confirm the format ?
If so, create a dummy file in ram: that only contains single line feed, and use that to redirect input of the Format command.

Here tested with rad:, it could format without confirmation :
Code:
echo "" >ram:1
c:format drive rad: name toto quick <ram:1
meynaf is offline  
Old 07 September 2023, 09:17   #7
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 7,035
You don't need a file. <nil: will also suppress the confirmation.
thomas is offline  
Old 07 September 2023, 09:21   #8
amigavision
Registered User
 
Join Date: May 2023
Location: World
Posts: 5
Thanks! Should have remembered that one, have used it in the past
amigavision is offline  
Old 07 September 2023, 23:42   #9
amigavision
Registered User
 
Join Date: May 2023
Location: World
Posts: 5
For the record, the <ram:1 approach worked, the <NIL: did not — at least in this particular case.
amigavision is offline  
Old 08 September 2023, 21:48   #10
Snoopy1234
Registered User
 
Snoopy1234's Avatar
 
Join Date: Apr 2022
Location: Australia
Age: 52
Posts: 906
Quote:
Originally Posted by amigavision View Post
For the record, the <ram:1 approach worked, the <NIL: did not — at least in this particular case.
Although I thought of >:NIL as a null statement and I get confused by semantics eg >NIL: in this case <NIL: works as a NOREQS carriage-return on my OS 3.9 A1200. It's interesting that the COPY command has NOREQS as a switch option but Format doesn't. Also I found the switch \r is a common suffix across multiple platforms as a carriage-return alternative. In this case; the idea I had was Format >:NIL \r but that seems to kill the project; as it does complete - but Format doesn't do anything..... So. Thanks for such a simple mind-shift.
Snoopy1234 is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
skipping parts of a static copperlist... Tigerskunk Coders. Asm / Hardware 13 27 October 2019 16:11
Amiga 500 - Frame skipping? lesta_smsc support.Hardware 12 05 February 2019 10:10
CD32 video skipping Djay support.WinUAE 4 04 October 2010 14:09
CD32 Video Skipping Kitty support.WinUAE 18 29 December 2009 20:24
Systematic skipping of all interesting content? :) Photon AMR suggestions and feedback 7 01 September 2009 17:05

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 07:50.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.08092 seconds with 15 queries