aap / pdp6

PDP-6 Emulator
MIT License
59 stars 9 forks source link

Running pdp6 emulator from script #7

Open larsbrinkhoff opened 5 years ago

larsbrinkhoff commented 5 years ago

I'd like to run the pdp6 emulator from a script, like this:

(cd .../pdp6/emu; ./pdp6 > pdp6.log 2>&1) &

This starts the program in the background, logging output to a file. However, in this case it will not open the SDL window to display the PDP-6 console.

Secondly, pdp6 shows a > prompt waiting for input. I'm not sure I need to enter a command or not to have the PDP-6 running?

aap commented 5 years ago

It's the call to getline() in cmd.c that does this. I guess we don't want to run the cli thread when started as a background process.

larsbrinkhoff commented 5 years ago

See also https://github.com/PDP-10/its/issues/1583