aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorTim Culverhouse <tim@timculverhouse.com>2023-04-23 08:01:24 -0500
committerRobin Jarry <robin@jarry.cc>2023-04-24 09:49:00 +0200
commit3d99fae3d22422f5e46b5c983abd617187144bc8 (patch)
treeab306219954a1a143a799346d50316ee40459b9d /widgets
parentc7b122f4c4a87cd54402c78465e1a5c882f37aeb (diff)
downloadaerc-3d99fae3d22422f5e46b5c983abd617187144bc8.tar.gz
term: add config options for TERM and osc8
Add config options for setting the TERM environment variable used in tcell-term and for enabling or disabling OSC8 escape sequence output. Signed-off-by: Tim Culverhouse <tim@timculverhouse.com> Acked-by: Robin Jarry<robin@jarry.cc>
Diffstat (limited to 'widgets')
-rw-r--r--widgets/terminal.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/widgets/terminal.go b/widgets/terminal.go
index cbc943d7..8a75fb78 100644
--- a/widgets/terminal.go
+++ b/widgets/terminal.go
@@ -3,6 +3,7 @@ package widgets
import (
"os/exec"
+ "git.sr.ht/~rjarry/aerc/config"
"git.sr.ht/~rjarry/aerc/lib/ui"
"git.sr.ht/~rjarry/aerc/log"
tcellterm "git.sr.ht/~rockorager/tcell-term"
@@ -32,6 +33,8 @@ func NewTerminal(cmd *exec.Cmd) (*Terminal, error) {
vterm: tcellterm.New(),
visible: true,
}
+ term.vterm.OSC8 = config.General.EnableOSC8
+ term.vterm.TERM = config.General.Term
return term, nil
}