diff --git a/eeschema/sim/ngspice.cpp b/eeschema/sim/ngspice.cpp index 6529b60bb6..51510ed24b 100644 --- a/eeschema/sim/ngspice.cpp +++ b/eeschema/sim/ngspice.cpp @@ -324,7 +324,14 @@ int NGSPICE::cbSendChar( char* what, int id, void* user ) NGSPICE* sim = reinterpret_cast( user ); if( sim->m_reporter ) + { + // strip stdout/stderr from the line + if( ( strncasecmp( what, "stdout ", 7 ) == 0 ) + || ( strncasecmp( what, "stderr ", 7 ) == 0 ) ) + what += 7; + sim->m_reporter->Report( what ); + } return 0; }