From 6580a355ab934831e2bfbe0fd3fc4db013eacaea Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Thu, 11 Aug 2016 14:41:35 +0200 Subject: [PATCH] Strip 'stdout' & 'stderr' from ngspice log --- eeschema/sim/ngspice.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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; }