sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit 4c3c113f05cc81c09fb4b8828dc6d23502812ba5
parent 7360c80f4d2c5a24c0fc6022afdd4239e015dec3
Author: Quentin Rameau <quinq@fifth.space>
Date:   Tue, 11 Sep 2018 19:04:34 +0200

[st] iso14755: add some forgotten hunks to the patch

Diffstat:
Mst.suckless.org/patches/iso14755/st-iso14755-20180911-5b850e0.diff | 47+++++++++++++++++++++++++++++++++++++++++++++--
1 file changed, 45 insertions(+), 2 deletions(-)

diff --git a/st.suckless.org/patches/iso14755/st-iso14755-20180911-5b850e0.diff b/st.suckless.org/patches/iso14755/st-iso14755-20180911-5b850e0.diff @@ -10,11 +10,42 @@ index 823e79f..82b1b09 100644 }; /* +diff --git a/st.1 b/st.1 +index e8d6059..81bceff 100644 +--- a/st.1 ++++ b/st.1 +@@ -159,6 +159,10 @@ Copy the selected text to the clipboard selection. + .TP + .B Ctrl-Shift-v + Paste from the clipboard selection. ++.TP ++.B Ctrl-Shift-i ++Launch dmenu to enter a unicode codepoint and send the corresponding glyph ++to st. + .SH CUSTOMIZATION + .B st + can be customized by creating a custom config.h and (re)compiling the source diff --git a/st.c b/st.c -index aa0f0eb..76bb3ea 100644 +index 574dbee..76bb3ea 100644 --- a/st.c +++ b/st.c -@@ -1981,6 +1981,28 @@ tprinter(char *s, size_t len) +@@ -38,11 +38,15 @@ + + /* macros */ + #define IS_SET(flag) ((term.mode & (flag)) != 0) ++#define NUMMAXLEN(x) ((int)(sizeof(x) * 2.56 + 0.5) + 1) + #define ISCONTROLC0(c) (BETWEEN(c, 0, 0x1f) || (c) == '\177') + #define ISCONTROLC1(c) (BETWEEN(c, 0x80, 0x9f)) + #define ISCONTROL(c) (ISCONTROLC0(c) || ISCONTROLC1(c)) + #define ISDELIM(u) (utf8strchr(worddelimiters, u) != NULL) + ++/* constants */ ++#define ISO14755CMD "dmenu -w \"$WINDOWID\" -p codepoint: </dev/null" ++ + enum term_mode { + MODE_WRAP = 1 << 0, + MODE_INSERT = 1 << 1, +@@ -1977,6 +1981,28 @@ tprinter(char *s, size_t len) } } @@ -43,3 +74,15 @@ index aa0f0eb..76bb3ea 100644 void toggleprinter(const Arg *arg) { +diff --git a/st.h b/st.h +index 38c61c4..dac64d8 100644 +--- a/st.h ++++ b/st.h +@@ -80,6 +80,7 @@ void die(const char *, ...); + void redraw(void); + void draw(void); + ++void iso14755(const Arg *); + void printscreen(const Arg *); + void printsel(const Arg *); + void sendbreak(const Arg *);