bluecmd10/06/2020, 11:50 AM
That one works with gaw, it shows a window during the simulation but closes it if the simulation is successful. Output is stored in $n.out in addition to being into the terminal. I run that with "Fg" and not "Status".
$terminal -e 'set -o pipefail; (ngspice -b -r "$n.raw" "$N" | tee "$n.out") || (echo -e "\n** ngspice exited with error code $? **"; echo "Press enter to close"; read)'