summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Persch <chpe@gnome.org>2016-02-13 13:33:18 +0100
committerChristian Persch <chpe@gnome.org>2016-02-13 13:33:18 +0100
commit1dea919b9aa4b55e2c5c07bf2022769cbac365b5 (patch)
treea3e9d27d72361d734f47165842ddf8d23593308c
parente5803965891e6c22bd503b6a96c98097f6890ffd (diff)
downloadvte-1dea919b9aa4b55e2c5c07bf2022769cbac365b5.tar.gz
pty: Set COLORTERM variable
https://bugzilla.gnome.org/show_bug.cgi?id=754521
-rw-r--r--src/pty.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pty.cc b/src/pty.cc
index 02a65b10..44d28a38 100644
--- a/src/pty.cc
+++ b/src/pty.cc
@@ -294,6 +294,9 @@ __vte_pty_merge_environ (char **envp,
g_hash_table_replace (table, g_strdup ("VTE_VERSION"), g_strdup_printf ("%u", VTE_VERSION_NUMERIC));
+ /* Always set this ourself, not allowing replacing from envp */
+ g_hash_table_replace(table, g_strdup("COLORTERM"), g_strdup("truecolor"));
+
array = g_ptr_array_sized_new (g_hash_table_size (table) + 1);
g_hash_table_iter_init(&iter, table);
while (g_hash_table_iter_next(&iter, (void**) &name, (void**) &value)) {