From 9fa217e40de5e63af2dd8619c2d493f1a9bf2128 Mon Sep 17 00:00:00 2001
From: Grzegorz Szymaszek <gszymaszek@short.pl>
Date: Sat, 29 May 2021 18:09:27 +0200
Subject: [PATCH] Add foot to the known terminals
foot is a "fast, lightweight and minimalistic Wayland terminal emulator"
(see https://codeberg.org/dnkl/foot). Add its default TERM value to the
recognized ones. This enables mc to change the terminal window title and
handle mouse events.
---
lib/tty/tty.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/tty/tty.c b/lib/tty/tty.c
index 784488ba1..6545208d3 100644
a
|
b
|
sigintr_handler (int signo) |
98 | 98 | * Eterm |
99 | 99 | * dtterm |
100 | 100 | * alacritty* |
| 101 | * foot* |
101 | 102 | * screen* (and DISPLAY environment variable is set). |
102 | 103 | */ |
103 | 104 | gboolean |
… |
… |
tty_check_term (gboolean force_xterm) |
123 | 124 | || strcmp (termvalue, "Eterm") == 0 |
124 | 125 | || strcmp (termvalue, "dtterm") == 0 |
125 | 126 | || strncmp (termvalue, "alacritty", 9) == 0 |
| 127 | || strncmp (termvalue, "foot", 4) == 0 |
126 | 128 | || (strncmp (termvalue, "screen", 6) == 0 && xdisplay != NULL); |
127 | 129 | } |
128 | 130 | |