Strip 'stdout' & 'stderr' from ngspice log

This commit is contained in:
Maciej Suminski 2016-08-11 14:41:35 +02:00
parent 90b6112c5d
commit 6580a355ab
1 changed files with 7 additions and 0 deletions

View File

@ -324,7 +324,14 @@ int NGSPICE::cbSendChar( char* what, int id, void* user )
NGSPICE* sim = reinterpret_cast<NGSPICE*>( 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;
}