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