aboutsummaryrefslogtreecommitdiffstats
path: root/config
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 /config
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 'config')
-rw-r--r--config/aerc.conf10
-rw-r--r--config/general.go2
2 files changed, 12 insertions, 0 deletions
diff --git a/config/aerc.conf b/config/aerc.conf
index 62d2ba92..cb720e07 100644
--- a/config/aerc.conf
+++ b/config/aerc.conf
@@ -38,6 +38,16 @@
# Default: info
#log-level=info
+# Set the $TERM environment variable used for the embedded terminal.
+#
+# Default: xterm-256color
+#term=xterm-256color
+
+# Display OSC8 strings in the embedded terminal
+#
+# Default: false
+#enable-osc8=false
+
[ui]
#
# Describes the format for each row in a mailbox view. This is a comma
diff --git a/config/general.go b/config/general.go
index a2c5e765..65c20cfd 100644
--- a/config/general.go
+++ b/config/general.go
@@ -17,6 +17,8 @@ type GeneralConfig struct {
LogFile string `ini:"log-file"`
LogLevel log.LogLevel `ini:"log-level" default:"info" parse:"ParseLogLevel"`
DisableIPC bool `ini:"disable-ipc"`
+ EnableOSC8 bool `ini:"enable-osc8" default:"false"`
+ Term string `ini:"term" default:"xterm-256color"`
}
var General = new(GeneralConfig)