all repos — st @ 67d0cb65d0794e2d91e72e5fa1e3612172e5812e

st (suckless terminal) config

Remove the ISO 14755 feature

And move it to the patches section.
Keeping it would force to add an exec pledge on OpenBSD, and some
people think it's bloated, so bye!
Quentin Rameau quinq@fifth.space
commit

67d0cb65d0794e2d91e72e5fa1e3612172e5812e

parent

4f4bccd1627c845330235721f593d2e93418723d

4 files changed, 0 insertions(+), 32 deletions(-)

jump to
M config.def.hconfig.def.h

@@ -177,7 +177,6 @@ { TERMMOD, XK_C, clipcopy, {.i = 0} },

{ TERMMOD, XK_V, clippaste, {.i = 0} }, { TERMMOD, XK_Y, selpaste, {.i = 0} }, { TERMMOD, XK_Num_Lock, numlock, {.i = 0} }, - { TERMMOD, XK_I, iso14755, {.i = 0} }, }; /*
M st.1st.1

@@ -159,10 +159,6 @@ 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
M st.cst.c

@@ -38,14 +38,10 @@ #define STR_ARG_SIZ ESC_ARG_SIZ

/* 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,

@@ -1979,28 +1975,6 @@ perror("Error writing to output file");

close(iofd); iofd = -1; } -} - -void -iso14755(const Arg *arg) -{ - FILE *p; - char *us, *e, codepoint[9], uc[UTF_SIZ]; - unsigned long utf32; - - if (!(p = popen(ISO14755CMD, "r"))) - return; - - us = fgets(codepoint, sizeof(codepoint), p); - pclose(p); - - if (!us || *us == '\0' || *us == '-' || strlen(us) > 7) - return; - if ((utf32 = strtoul(us, &e, 16)) == ULONG_MAX || - (*e != '\n' && *e != '\0')) - return; - - ttywrite(uc, utf8encode(utf32, uc), 1); } void
M st.hst.h

@@ -80,7 +80,6 @@ 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 *);