Ticket #4396: 0001-tty_check_term-support-Contour.patch

File 0001-tty_check_term-support-Contour.patch, 973 bytes (added by whisperity, 2 years ago)

Patch (on top of commit 1c31e57c74b533c4d54e4a1bdd8dd1684c7ef86f) that adds the functionality requested in the ticket

  • lib/tty/tty.c

    From b40f8102717c89e72ee76e3c36adab4540df5447 Mon Sep 17 00:00:00 2001
    From: Whisperity <whisperity@gmail.com>
    Date: Sat, 30 Jul 2022 11:54:43 +0200
    Subject: [PATCH] (tty_check_term): support Contour.
    
    ---
     lib/tty/tty.c | 4 +++-
     1 file changed, 3 insertions(+), 1 deletion(-)
    
    diff --git a/lib/tty/tty.c b/lib/tty/tty.c
    index f27af9cca..60b138e91 100644
    a b sigintr_handler (int signo) 
    101101 *         foot* 
    102102 *         screen* 
    103103 *         tmux* 
     104 *         contour* 
    104105 */ 
    105106gboolean 
    106107tty_check_term (gboolean force_xterm) 
    tty_check_term (gboolean force_xterm) 
    124125        || strncmp (termvalue, "alacritty", 9) == 0 
    125126        || strncmp (termvalue, "foot", 4) == 0 
    126127        || strncmp (termvalue, "screen", 6) == 0 
    127         || strncmp (termvalue, "tmux", 4) == 0; 
     128        || strncmp (termvalue, "tmux", 4) == 0 
     129        || strncmp (termvalue, "contour", 7) == 0; 
    128130    /* *INDENT-ON* */ 
    129131} 
    130132