From 04af13459a210aa4ba2099489e1045c65df9dd51 Mon Sep 17 00:00:00 2001 From: Rob Greene Date: Sat, 26 May 2018 17:46:20 -0500 Subject: [PATCH] Quick run in tandem with 'ac' tool. --- tools/asu/README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tools/asu/README.md b/tools/asu/README.md index de62113..241d8c9 100644 --- a/tools/asu/README.md +++ b/tools/asu/README.md @@ -98,3 +98,19 @@ $ echo "Hello World!" | asu create --name my-text-file --stdout --filetype txt - 00000050 00 00 48 65 6c 6c 6f 20 57 6f 72 6c 64 21 0a |..Hello World!.| 0000005f ``` + +## Integration with 'ac' + +Create a disk, generate an AppleSingle text file, import into the ProDOS image, and then export the file to stdout. + +```shell +$ ac -pro140 demo.dsk demo +$ echo "Hello World!" | asu create --stdout --filetype txt --stdin-fork=data --fix-text | ac -as demo.dsk MY.TEXT.FILE +$ ac -l demo.dsk +demo.dsk /DEMO/ + MY.TEXT.FILE TXT 001 05/26/2018 05/26/2018 13 +ProDOS format; 139,264 bytes free; 4,096 bytes used. + +$ ac -e demo.dsk MY.TEXT.FILE +Hello World! +```