diff --git a/package/yast2-support.changes b/package/yast2-support.changes index 2de4b9b..dd2fd2c 100644 --- a/package/yast2-support.changes +++ b/package/yast2-support.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Mar 19 11:14:48 UTC 2015 - ancor@suse.com + +- Do not show ANSI escape codes on screen (bnc#921233) +- 3.1.6 + ------------------------------------------------------------------- Thu Dec 4 09:51:40 UTC 2014 - jreidinger@suse.com diff --git a/package/yast2-support.spec b/package/yast2-support.spec index 2b5a6ff..e8ab829 100644 --- a/package/yast2-support.spec +++ b/package/yast2-support.spec @@ -17,7 +17,7 @@ Name: yast2-support -Version: 3.1.5 +Version: 3.1.6 Release: 0 BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -33,7 +33,8 @@ BuildRequires: rubygem(yast-rake) BuildArch: noarch -Requires: yast2-ruby-bindings >= 1.0.0 +# Yast::CoreExt::AnsiString +Requires: yast2-ruby-bindings >= 3.1.36 Summary: YaST2 - Support Inquiries diff --git a/src/include/support/dialogs.rb b/src/include/support/dialogs.rb index 456f759..257053b 100644 --- a/src/include/support/dialogs.rb +++ b/src/include/support/dialogs.rb @@ -25,10 +25,14 @@ # Authors: Michal Zugec # # $Id: support.ycp 27914 2006-02-13 14:32:08Z locilka $ -# + +require "yast/core_ext" + # Main file for support configuration. Uses all other files. module Yast module SupportDialogsInclude + using Yast::CoreExt::AnsiString + def initialize_support_dialogs(include_target) textdomain "support" @@ -905,7 +909,11 @@ def GenerateDialog Builtins.sleep(100) if SCR.Read(path(".process.running"), pid) == true new_text = Convert.to_string(SCR.Read(path(".process.read"), pid)) - UI.ChangeWidget(Id(:log), :LastLine, new_text) if new_text != nil + if new_text + # Remove ANSI escape codes for cursor movement (bnc#921233) + new_text.remove_ansi_sequences + UI.ChangeWidget(Id(:log), :LastLine, new_text) + end else Wizard.EnableNextButton break