diff --git a/konsole-4.14.3-xterm-256color.patch b/konsole-4.14.3-xterm-256color.patch new file mode 100644 index 0000000..1eb9651 --- /dev/null +++ b/konsole-4.14.3-xterm-256color.patch @@ -0,0 +1,24 @@ +diff -up konsole-4.14.3/src/Profile.cpp.xterm-256color konsole-4.14.3/src/Profile.cpp +--- konsole-4.14.3/src/Profile.cpp.xterm-256color 2014-10-31 23:17:02.000000000 -0500 ++++ konsole-4.14.3/src/Profile.cpp 2014-12-23 09:16:18.242526791 -0600 +@@ -150,7 +150,7 @@ FallbackProfile::FallbackProfile() + setProperty(Command, qgetenv("SHELL")); + setProperty(Arguments, QStringList() << qgetenv("SHELL")); + setProperty(Icon, "utilities-terminal"); +- setProperty(Environment, QStringList() << "TERM=xterm"); ++ setProperty(Environment, QStringList() << "TERM=xterm-256color"); + setProperty(LocalTabTitleFormat, "%d : %n"); + setProperty(RemoteTabTitleFormat, "(%u) %H"); + setProperty(ShowTerminalSizeHint, true); +diff -up konsole-4.14.3/src/Pty.cpp.xterm-256color konsole-4.14.3/src/Pty.cpp +--- konsole-4.14.3/src/Pty.cpp.xterm-256color 2014-10-31 23:17:02.000000000 -0500 ++++ konsole-4.14.3/src/Pty.cpp 2014-12-23 09:16:43.828569726 -0600 +@@ -218,7 +218,7 @@ void Pty::addEnvironmentVariables(const + + // extra safeguard to make sure $TERM is always set + if (!isTermEnvAdded) { +- setEnv("TERM", "xterm"); ++ setEnv("TERM", "xterm-256color"); + } + } + diff --git a/konsole.spec b/konsole.spec index 3aff87b..f273636 100644 --- a/konsole.spec +++ b/konsole.spec @@ -1,7 +1,7 @@ Name: konsole Summary: KDE Terminal emulator Version: 4.14.3 -Release: 1%{?dist} +Release: 2%{?dist} # sources: MIT and LGPLv2 and LGPLv2+ and GPLv2+ License: GPLv2 and GFDL @@ -14,9 +14,13 @@ URL: http://konsole.kde.org/ %endif Source0: http://download.kde.org/%{stable}/%{version}/src/%{name}-%{version}.tar.xz +## upstreamable patches # do not store history in /tmp # http://bugzilla.redhat.com/990197 Patch1: konsole-4.14.1-history_cache_instead_of_tmp.patch +# TERM=xterm-256color default +# https://bugzilla.redhat.com/1172329 +Patch2: konsole-4.14.3-xterm-256color.patch BuildRequires: desktop-file-utils BuildRequires: kdelibs4-devel >= %{version} @@ -87,6 +91,9 @@ desktop-file-validate %{buildroot}%{_kde4_datadir}/applications/kde4/konsole.des %changelog +* Tue Dec 23 2014 Rex Dieter 4.14.3-2 +- TERM=xterm-256color default (#1172329) + * Sun Nov 09 2014 Rex Dieter - 4.14.3-1 - 4.14.3