From c8bf3bc4bc84c4448760e9b1849e909c2eb0f77e Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Mar 18 2016 18:27:59 +0000 Subject: TERM=xterm-256color default (#1172329) --- diff --git a/konsole-15.12.3-xterm-256color.patch b/konsole-15.12.3-xterm-256color.patch new file mode 100644 index 0000000..0a11014 --- /dev/null +++ b/konsole-15.12.3-xterm-256color.patch @@ -0,0 +1,24 @@ +diff -up konsole-15.12.3/src/Profile.cpp.xterm-256color konsole-15.12.3/src/Profile.cpp +--- konsole-15.12.3/src/Profile.cpp.xterm-256color 2016-03-09 14:37:58.000000000 -0600 ++++ konsole-15.12.3/src/Profile.cpp 2016-03-18 13:24:16.444568037 -0500 +@@ -151,7 +151,7 @@ FallbackProfile::FallbackProfile() + setProperty(Command, qgetenv("SHELL")); + setProperty(Arguments, QStringList() << qgetenv("SHELL")); + setProperty(Icon, "utilities-terminal"); +- setProperty(Environment, QStringList() << QStringLiteral("TERM=xterm")); ++ setProperty(Environment, QStringList() << QStringLiteral("TERM=xterm-256color")); + setProperty(LocalTabTitleFormat, "%d : %n"); + setProperty(RemoteTabTitleFormat, "(%u) %H"); + setProperty(ShowTerminalSizeHint, true); +diff -up konsole-15.12.3/src/Pty.cpp.xterm-256color konsole-15.12.3/src/Pty.cpp +--- konsole-15.12.3/src/Pty.cpp.xterm-256color 2016-03-09 14:37:58.000000000 -0600 ++++ konsole-15.12.3/src/Pty.cpp 2016-03-18 13:24:46.211731386 -0500 +@@ -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/konsole5.spec b/konsole5.spec index 2b3bd83..da27bee 100644 --- a/konsole5.spec +++ b/konsole5.spec @@ -1,7 +1,7 @@ Name: konsole5 Summary: KDE Terminal emulator Version: 15.12.3 -Release: 1%{?dist} +Release: 2%{?dist} # sources: MIT and LGPLv2 and LGPLv2+ and GPLv2+ License: GPLv2 and GFDL @@ -22,6 +22,8 @@ Source0: http://download.kde.org/%{stable}/applications/%{version}/src/konsole-% Patch200: konsole-history_location_default.patch # custom konsolerc that sets default to cache as well Source10: konsolerc +# TERM=xterm-256color default +Patch201: konsole-15.12.3-xterm-256color.patch Obsoletes: konsole < 14.12 Provides: konsole = %{version}-%{release} @@ -125,6 +127,9 @@ test "$(%{_target_platform}/src/konsole --version | grep ^Konsole | cut -d' ' -f %changelog +* Fri Mar 18 2016 Rex Dieter - 15.12.3-2 +- TERM=xterm-256color default (#1172329) + * Sun Mar 13 2016 Rex Dieter - 15.12.3-1 - 15.12.3