[hackers] [st][PATCH] update FAQ regarding meta key

From: NRK <nrk_AT_disroot.org>
Date: Sun, 10 Apr 2022 19:48:09 +0600

just changing $TERM to "st-meta" doesn't enable the meta key, at least
on vim. searching the mailing list, I learned that `tput smm` was needed
to enable 8bit mode[0].

[0]: https://lists.suckless.org/dev/1304/15426.html
---
 FAQ | 8 ++++++++
 1 file changed, 8 insertions(+)
diff --git a/FAQ b/FAQ
index 969b195..5a52dfd 100644
--- a/FAQ
+++ b/FAQ
_AT_@ -95,6 +95,14 @@ St supports meta in 8bit mode, but the default terminfo entry doesn't
 use this capability. If you want it, you have to use the 'st-meta' value
 in TERM.
 
+Additionally, you may need to run `tput smm` to enable 8bit mode. Add the
+following to your shellrc (e.g. ~/bashrc) to automatically run it upon shell
+startup:
+
+	if [ "$TERM" = "st-meta-256color" ] || [ "$TERM" = "st-meta" ]; then
+		tput smm
+	fi
+
 
 ## I cannot compile st in OpenBSD
 
-- 
2.35.1
Received on Sun Apr 10 2022 - 15:48:09 CEST

This archive was generated by hypermail 2.3.0 : Sun Apr 10 2022 - 15:48:39 CEST