diff --git a/config.def.h b/config.def.h index 0895a1f..578a90e 100644 --- a/config.def.h +++ b/config.def.h @@ -159,6 +159,11 @@ static unsigned int defaultattr = 11; */ static uint forcemousemod = ShiftMask; +/* + * Command used to query unicode glyphs. + */ +char *iso14755_cmd = "dmenu -w \"$WINDOWID\" -p codepoint: 7) + return; + if ((utf32 = strtoul(us, &e, 16)) == ULONG_MAX || + (*e != '\n' && *e != '\0')) + return; + + ttywrite(uc, utf8encode(utf32, uc), 1); +} + void toggleprinter(const Arg *arg) { diff --git a/st.h b/st.h index d978458..7b00dd6 100644 --- a/st.h +++ b/st.h @@ -81,6 +81,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 *); @@ -122,3 +123,4 @@ extern char *termname; extern unsigned int tabspaces; extern unsigned int defaultfg; extern unsigned int defaultbg; +extern char *iso14755_cmd;