Follow-up Comment #7, bug #60602 (project groff):
[comment #6 comment #6:]
> > Now all I need is a way to get V7 troff CAT output out of the SIMH
instance I'm running.
> > […]
> > Maybe I can od(1) it and then parse it back into a real stream.
>
> That's exactly what I do. I use this
<https://github.com/Alhadis/Roff-Character-Tests/blob/cefd35c189cc34c55ac79bb6e1838cf0907e7776/bytes.c>
to "import" binary files in a running SIMH session, and this
<https://github.com/Alhadis/.files/blob/80dff841eefc98ccd4fc848c747a7585c68bec1a/bin/od-to-binary>
to unpack the output of `od -b` (which I copy+paste from my terminal).
Excellent! Except...maybe my JS environment is too old?
$ unod otroff.odbout
/home/branden/bin/unod:24
.flat();
^
TypeError: fs.readFileSync(...).trim(...).split(...).map(...).map(...).flat is
not a function
at Object.<anonymous> (/home/branden/bin/unod:24:4)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
Any ideas?
> It feels amateurish and hacky, so I've recently been reading up on SIMH
configuration and if there's a way of "mounting" a directory on the host
system so that files can be shared with a running SIMH session (a la,
VirtualBox). I'll let you know if I succeed...
I haven't heard of anyone doing anything like this, but you might try the
archives of the TUHS list.
https://minnie.tuhs.org/mailman/listinfo/tuhs
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?60602>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/