aboutsummaryrefslogtreecommitdiffstats
path: root/src/local
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-12-01 13:58:32 +0100
committerbptato <nincsnevem662@gmail.com>2024-12-01 13:58:32 +0100
commit5f27023010844a36c95e13f44381eb8bc34afb53 (patch)
tree592a82ae20601dba5dd0f5e673fb44c7e6b90fbd /src/local
parente77c7104c1dc6ec0b2ca8c6c839233107ff9cb32 (diff)
downloadchawan-5f27023010844a36c95e13f44381eb8bc34afb53.tar.gz
term: disable screen workaround on tmux
Diffstat (limited to 'src/local')
-rw-r--r--src/local/term.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/local/term.nim b/src/local/term.nim
index 9594a901..948d0f24 100644
--- a/src/local/term.nim
+++ b/src/local/term.nim
@@ -1100,7 +1100,8 @@ proc queryAttrs(term: Terminal; windowOnly: bool): QueryResult =
const tcapRGB = 0x524742 # RGB supported?
if not windowOnly:
var outs = ""
- if term.tname != "screen":
+ let isTmux = getEnv("TMUX") != ""
+ if term.tname != "screen" or isTmux:
# screen has a horrible bug (feature?) where the responses to
# bg/fg queries are printed out of order (presumably because it
# must ask the terminal first).