From 6deb262dd75bb6a573cda6e522098543c9001a7e Mon Sep 17 00:00:00 2001 From: Markus Gans Date: Mon, 15 Mar 2021 09:41:14 +0100 Subject: [PATCH] Preparation of error handling in FTerm::putstring --- src/fterm.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/fterm.cpp b/src/fterm.cpp index 99ae5616..fc44b30f 100644 --- a/src/fterm.cpp +++ b/src/fterm.cpp @@ -1117,7 +1117,12 @@ FTerm::defaultPutChar& FTerm::putchar() //---------------------------------------------------------------------- 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 + } } //----------------------------------------------------------------------