[wiki] [sites] [st][scrollback] Update scrollback-mouse-altscreen for 4.8 || Ivan Tham

From: <git_AT_suckless.org>
Date: Tue, 20 Mar 2018 13:21:38 +0100

commit c074cda1b2ecf3fef3d43b0280d27eddd4afb978
Author: Ivan Tham <pickfire_AT_riseup.net>
Date: Tue Mar 20 20:21:40 2018 +0800

    [st][scrollback] Update scrollback-mouse-altscreen for 4.8

diff --git a/st.suckless.org/patches/scrollback/st-scrollback-mouse-altscreen-0.8.diff b/st.suckless.org/patches/scrollback/st-scrollback-mouse-altscreen-0.8.diff
index f959be27..bc4a0ac9 100644
--- a/st.suckless.org/patches/scrollback/st-scrollback-mouse-altscreen-0.8.diff
+++ b/st.suckless.org/patches/scrollback/st-scrollback-mouse-altscreen-0.8.diff
_AT_@ -13,8 +13,52 @@ index feec7e2..f1a9768 100644
  };
  
  /* Internal keyboard shortcuts. */
+diff --git a/st.c b/st.c
+index 1d8c12a..f226625 100644
+--- a/st.c
++++ b/st.c
+_AT_@ -47,17 +47,6 @@
+ /* constants */
+ #define ISO14755CMD "dmenu -w \"$WINDOWID\" -p codepoint: </dev/null"
+
+-enum term_mode {
+- MODE_WRAP = 1 << 0,
+- MODE_INSERT = 1 << 1,
+- MODE_ALTSCREEN = 1 << 2,
+- MODE_CRLF = 1 << 3,
+- MODE_ECHO = 1 << 4,
+- MODE_PRINT = 1 << 5,
+- MODE_UTF8 = 1 << 6,
+- MODE_SIXEL = 1 << 7,
+-};
+-
+ enum cursor_movement {
+ CURSOR_SAVE,
+ CURSOR_LOAD
+diff --git a/st.h b/st.h
+index cdd25ae..bb6dad4 100644
+--- a/st.h
++++ b/st.h
+_AT_@ -25,6 +25,17 @@
+ #define TLINE(y) ((y) < term.scr ? term.hist[((y) + term.histi - term.scr \
+ + HISTSIZE + 1) % HISTSIZE] : term.line[(y) - term.scr])
+
++enum term_mode {
++ MODE_WRAP = 1 << 0,
++ MODE_INSERT = 1 << 1,
++ MODE_ALTSCREEN = 1 << 2,
++ MODE_CRLF = 1 << 3,
++ MODE_ECHO = 1 << 4,
++ MODE_PRINT = 1 << 5,
++ MODE_UTF8 = 1 << 6,
++ MODE_SIXEL = 1 << 7,
++};
++
+ enum glyph_attribute {
+ ATTR_NULL = 0,
+ ATTR_BOLD = 1 << 0,
 diff --git a/x.c b/x.c
-index 754d859..1f49295 100644
+index 1de5f6c..d3f869e 100644
 --- a/x.c
 +++ b/x.c
 _AT_@ -417,13 +417,14 @@ bpress(XEvent *e)
Received on Tue Mar 20 2018 - 13:21:38 CET

This archive was generated by hypermail 2.3.0 : Tue Mar 20 2018 - 13:24:23 CET