[vte] pty: Set COLORTERM variable



commit 1dea919b9aa4b55e2c5c07bf2022769cbac365b5
Author: Christian Persch <chpe gnome org>
Date:   Sat Feb 13 13:33:18 2016 +0100

    pty: Set COLORTERM variable
    
    https://bugzilla.gnome.org/show_bug.cgi?id=754521

 src/pty.cc |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/pty.cc b/src/pty.cc
index 02a65b1..44d28a3 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)) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]