ref: refs/heads/master
commit e9153d66b468dde92304995749e845b56388b4a2
Author: Ján Kupec
Date: Tue Mar 10 13:35:03 2009 +0100
Avoid control chars in non-terminal output (bnc #440822).
Proper fix.
---
src/output/OutNormal.cc | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/output/OutNormal.cc b/src/output/OutNormal.cc
index 7f5b631..ebad7de 100644
--- a/src/output/OutNormal.cc
+++ b/src/output/OutNormal.cc
@@ -313,8 +313,11 @@ void OutNormal::prompt(PromptId id,
const PromptOptions & poptions,
const std::string & startdesc)
{
- if (startdesc.empty() && !_isatty)
- cout << CLEARLN;
+ if (startdesc.empty())
+ {
+ if (_isatty)
+ cout << CLEARLN;
+ }
else
cout << startdesc << endl;
cout << prompt;
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org