Just ran on the same issue and the answers above did not help so my 5 cents...
So far it seems to me that the easiest way to deal with it is to use a simple script like this:
#!/bin/bash
[ ! -f "$1" ] && { echo "usage: $0 filename.txt" ; exit 1; }
tr A-Z a-z < "$1" | petcat -w -2 -o "$1.prg" --
so basically lowercase the file and use the petcat
tool that comes with VICE.
The .prg
file can be eg. copied on a .d64
(on Linux, FreeBSD eg. with c1541
or even mc
, assuming that the prior is available in the system...) and loaded inside an emulator as usual (in VICE such a .prg
file can be loaded directly).
Another way is just copy/pasting the text using the standard system's buffer - it works with VICE. I tried it but I find it not very comfortable (and it also requires lowercasing - otherwise the pasted code is a mess, the characters change into graphical petscii symbols...).
Btw. it is a pity that VICE does not provide a nice built-in solution like some other emulators (FS-UAE, Atari800, Hatari, ...) which allow to have a local directory with normal text files that can be loaded directly to the emulator like from a native disk image (or a hard disk), doing all the conversions on the fly. It would make things a lot easier and save time.
Hope it helps.