File Handling: dos.fs #338
Whammo
started this conversation in
Show and tell
Replies: 1 comment
-
Just a little time and distance and things become apparent. require io
\ send command string to drive and
\ print response
: send-cmd ( addr len -- )
$f $f open ioabort
clrchn $f chkin ioabort
begin chrin emit readst until
clrchn $f close cr ;
\ send remainder of line as dos command
\ and print response
: dos parse-name
over c@ 36 = if \ dir
ls
else 2drop source >in @ /string
dup >in +!
send-cmd then ; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Lastly but not leastly, there's nothing to be mined here.
I've added the ability to DOS $ to get a directory,
but this interfereslikely consuming any space savings.with sending dos commands that have spaces, and $ chokes on padded
spaces-
Edit: I saw the fix, nevertheless.
The good stuff:
Beta Was this translation helpful? Give feedback.
All reactions