[wiki] [sites] [st] add truecolor-emacs patch || Kaz Wesley

From: <git_AT_suckless.org>
Date: Sat, 29 Apr 2017 02:56:17 +0200

commit baa0e195f6a8aea4d7594e630574bbf0173eba9c
Author: Kaz Wesley <keziahw_AT_gmail.com>
Date: Fri Apr 28 17:48:00 2017 -0700

    [st] add truecolor-emacs patch
    
    Support the 24-bit RGB commands (setf24/setb24) available in the
    current dev version of emacs 26 (added in emacs git e463e57).

diff --git a/st.suckless.org/patches/st-truecolor-emacs-0.7.diff b/st.suckless.org/patches/st-truecolor-emacs-0.7.diff
new file mode 100644
index 0000000..24c9716
--- /dev/null
+++ b/st.suckless.org/patches/st-truecolor-emacs-0.7.diff
_AT_@ -0,0 +1,14 @@
+diff --git a/st.info b/st.info
+index b70fefa..adfbc5c 100644
+--- a/st.info
++++ b/st.info
+_AT_@ -187,6 +187,9 @@ st| simpleterm,
+ xenl,
+ vpa=\E[%i%p1%dd,
+
++# truecolor Emacs
++ setb24=\E[48;2;%p1%{65536}%/%d;%p1%{256}%/%{255}%&%d;%p1%{255}%&%dm,
++ setf24=\E[38;2;%p1%{65536}%/%d;%p1%{256}%/%{255}%&%d;%p1%{255}%&%dm,
+
+ st-256color| simpleterm with 256 colors,
+ use=st,
Received on Sat Apr 29 2017 - 02:56:17 CEST

This archive was generated by hypermail 2.3.0 : Sat Apr 29 2017 - 03:00:17 CEST