hatari-prg-args(1)
π hatari-prg-args(1) π
okay so bestie, welcome to hatari-prg-args β it's part of the Hatari utilities manual, and it's genuinely one of the most underrated little tools in the whole kit. sit down, grab a strawberry π, let's get into it.
β¨ NAME β¨
hatari-prg-args β autorun Atari programs with arguments. yes. that's the whole vibe. it launches your Atari program and hands it the args it needs. iconic behavior honestly. π
πΈ SYNOPSIS πΈ
hatari-prg-args [-q] [Hatari args] -- <Atari program> <program args>
π¦ DESCRIPTION π¦
So this is a utility that runs Hatari in a way where it autostarts the Atari program you give it, and then inserts the arguments you give into that program β like, directly into its basepage, using Hatari's builtin debugger facilities. no cap, it's basically the group chat translator between your Unix shell and TOS. π
Here's the path tea, because this is the part that trips people up:
- If the Atari program's arguments share the same (host) path prefix as the Atari program you gave it, those prefixes get replaced with
"C:\". Then the Unix path separators (/) get swapped for Atari ones (\), and the whole filename gets upper-cased. β¨ - If the program and its input files live on a disk image, then all paths need to be given exactly as they are in TOS β and they will not be translated. don't @ me, that's just how it is. π
- Every other program argument? Passed through unmodified. untouched. pristine. π
β NOTES β
The maximum Atari program command line length that you can give (in the basepage) is 126 characters. so keep it cute and keep it short bestie, there is no "one more arg" here. π
On Unix, the Atari/DOS path separator (\) needs to be quoted. fr fr, quote it or the shell will absolutely eat it. π
π OPTIONS π
-qβ makes Hatari quit when the Atari program you started terminates. and listen β if you're gonna use it, it needs to be the very first argument. first. not second. first. periodt. π
π EXAMPLES π
Start a SID player in mono and tell it to play a given SID song π΅
hatari-prg-args -m -- atari/sidplay.ttp atari/sids/test.sid
Run it from a disk image instead of a host directory πΎ
hatari-prg-args -m -- 'A:\SIDPLAY.TTP' 'SIDS\TEST.SID'
see how the second one is all quoted and upper-cased? that's the TOS-path energy. no translation, just vibes. π«Ά
π SEE ALSO π
π AUTHOR π
Written by Eero Tamminen <oak at helsinkinet fi>. thank you for your service, legend. π«‘
π LICENSE π
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
π NO WARRANTY π
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
okay that's the whole page bestie, go forth and autorun responsibly πβ¨ this was the Hatari hatari-prg-args(1) page, dated 2018-05-01, from the Hatari crew β mwah, slay, bye! π¦πΈ
π¦ where this page comes from
- arch rolling: hatari 2.6.1-1 Β· GPL-2.0-or-later
- debian bookworm: hatari 2.4.1+dfsg-2 Β· GPL-2.0-or-later
- debian trixie: hatari 2.5.0+dfsg-1+b1 Β· GPL-2.0-or-later
- fedora 43: hatari 2.6.1-1.fc43 Β· GPL-2.0-or-later
- fedora 43: hatari 2.6.1-3.fc43 Β· GPL-2.0-or-later
- fedora 44: hatari 2.6.1-1.fc44 Β· GPL-2.0-or-later
- fedora 44: hatari 2.6.1-3.fc44 Β· GPL-2.0-or-later
- nixos 26.05: hatari 2.6.1
- nixpkgs unstable: hatari 2.6.1
- ubuntu jammy: hatari 2.3.1+dfsg-1 Β· GPL-2.0-or-later
- ubuntu noble: hatari 2.4.1+dfsg-2build2 Β· GPL-2.0-or-later
- ubuntu questing: hatari 2.5.0+dfsg-2
- ubuntu resolute: hatari 2.6.1+dfsg-2 Β· GPL-2.0-or-later
- ubuntu stonking: hatari 2.6.1+dfsg-3 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms