summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Hindenburg <kurt.hindenburg@gmail.com>2016-11-24 16:29:11 (GMT)
committerKurt Hindenburg <kurt.hindenburg@gmail.com>2016-11-24 16:32:15 (GMT)
commitd5cac9d2f1a1225d19c0be6b51e3db6e4aaed3d4 (patch)
treee4d31be9112dfc0579fa1ee2f1983c59fa03f1ac
parentcbc20416f77ab13b7e37de2a1030fb4bad143a57 (diff)
set default TERM=xterm-256color
Change TERM=xterm to xterm-256color CCBUG: 371919 BUG: 212145 (cherry picked from commit 2671800b084cf89f1a91c6b3fdf93eb3b8078672)
-rw-r--r--src/Profile.cpp2
-rw-r--r--src/Pty.cpp2
2 files changed, 2 insertions, 2 deletions
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");
}
}