[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [konsole/Applications/16.12] src: set default TERM=xterm-256color
From:       Kurt Hindenburg <kurt.hindenburg () gmail ! com>
Date:       2016-11-24 16:32:43
Message-ID: E1c9wx1-0006ja-Qp () code ! kde ! org
[Download RAW message or body]

Git commit d5cac9d2f1a1225d19c0be6b51e3db6e4aaed3d4 by Kurt Hindenburg.
Committed on 24/11/2016 at 16:32.
Pushed by hindenburg into branch 'Applications/16.12'.

set default TERM=xterm-256color

Change TERM=xterm to xterm-256color

CCBUG: 371919
BUG: 212145
(cherry picked from commit 2671800b084cf89f1a91c6b3fdf93eb3b8078672)

M  +1    -1    src/Profile.cpp
M  +1    -1    src/Pty.cpp

https://commits.kde.org/konsole/d5cac9d2f1a1225d19c0be6b51e3db6e4aaed3d4

diff --git a/src/Profile.cpp b/src/Profile.cpp
index 7cdc73c..61b9e34 100644
--- a/src/Profile.cpp
+++ b/src/Profile.cpp
@@ -158,7 +158,7 @@ FallbackProfile::FallbackProfile()
     // See Pty.cpp on why Arguments is populated
     setProperty(Arguments, QStringList() << qgetenv("SHELL"));
     setProperty(Icon, "utilities-terminal");
-    setProperty(Environment, QStringList() << QStringLiteral("TERM=xterm") << \
QStringLiteral("COLORTERM=truecolor")); +    setProperty(Environment, QStringList() \
<< QStringLiteral("TERM=xterm-256color") << QStringLiteral("COLORTERM=truecolor"));  \
setProperty(LocalTabTitleFormat, "%d : %n");  setProperty(RemoteTabTitleFormat, "(%u) \
%H");  setProperty(ShowTerminalSizeHint, true);
diff --git a/src/Pty.cpp b/src/Pty.cpp
index f76edfb..ffd01cd 100644
--- a/src/Pty.cpp
+++ b/src/Pty.cpp
@@ -218,7 +218,7 @@ void Pty::addEnvironmentVariables(const QStringList& \
environmentVariables)  
     // extra safeguard to make sure $TERM is always set
     if (!isTermEnvAdded) {
-        setEnv("TERM", "xterm");
+        setEnv("TERM", "xterm-256color");
     }
 }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic