d-iii-s / msim

Light-weight MIPS R4000 and RISC-V system simulator
https://d3s.mff.cuni.cz/software/msim/
GNU General Public License v2.0
5 stars 5 forks source link

Way to prevent entering interactive mode when run from scripts #12

Closed ceresek closed 4 years ago

ceresek commented 4 years ago

Code can use special instruction to enter interactive mode. When run from script, this usually creates issues (simulation may appear to hang when in fact it is just waiting for input). We should have a way to avoid this:

lbulej commented 4 years ago

The check using isatty() looks like a good solution...