Preparation of error handling in FTerm::putstring

This commit is contained in:
Markus Gans 2021-03-15 09:41:14 +01:00
parent e6dfd73e7a
commit 6deb262dd7
1 changed files with 6 additions and 1 deletions

View File

@ -1117,7 +1117,12 @@ FTerm::defaultPutChar& FTerm::putchar()
//---------------------------------------------------------------------- //----------------------------------------------------------------------
void FTerm::putstring (const std::string& str, int affcnt) void FTerm::putstring (const std::string& str, int affcnt)
{ {
FTermcap::paddingPrint (str, affcnt, FTerm::putchar_ASCII); auto status = FTermcap::paddingPrint (str, affcnt, FTerm::putchar_ASCII);
if ( status == FTermcap::Status::Error )
{
// Possible error handling
}
} }
//---------------------------------------------------------------------- //----------------------------------------------------------------------