diff --git a/FAQ b/FAQ index 969b195..6287a27 100644 --- a/FAQ +++ b/FAQ @@ -248,3 +248,6 @@ fonts: Please don't bother reporting this bug to st, but notify the upstream Xft developers about fixing this bug. + +As of 2022-09-05 this now seems to be finally fixed in libXft 2.3.5: +https://gitlab.freedesktop.org/xorg/lib/libxft/-/blob/libXft-2.3.5/NEWS diff --git a/config.def.h b/config.def.h index d1ec4e1..8bf2d5b 100644 --- a/config.def.h +++ b/config.def.h @@ -6,7 +6,7 @@ * font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html */ -#define FONTSIZE "14" +#define FONTSIZE "24" static char *font = "Ubuntu Mono:pixelsize="FONTSIZE":antialias=true:autohint=true"; static char *font2[] = { @@ -142,13 +142,20 @@ unsigned int defaultcs = 256; static unsigned int defaultrcs = 257; /* - * Default shape of cursor - * 2: Block ("█") - * 4: Underline ("_") - * 6: Bar ("|") - * 7: Snowman ("☃") + * https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-SP-q.1D81 + * Default style of cursor + * 0: blinking block + * 1: blinking block (default) + * 2: steady block ("█") + * 3: blinking underline + * 4: steady underline ("_") + * 5: blinking bar + * 6: steady bar ("|") + * 7: blinking st cursor + * 8: steady st cursor */ -static unsigned int cursorshape = 2; +static unsigned int cursorshape = 1; +static Rune stcursor = 0x2603; /* snowman ("☃") */ /* * Default columns and rows numbers diff --git a/config.h b/config.h index d1ec4e1..f1b561b 100644 --- a/config.h +++ b/config.h @@ -6,7 +6,7 @@ * font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html */ -#define FONTSIZE "14" +#define FONTSIZE "24" static char *font = "Ubuntu Mono:pixelsize="FONTSIZE":antialias=true:autohint=true"; static char *font2[] = { diff --git a/config.mk b/config.mk index ddf278a..812d8de 100644 --- a/config.mk +++ b/config.mk @@ -1,5 +1,5 @@ # st version -VERSION = 0.8.5 +VERSION = bit_1.0 # Customize below to fit your system diff --git a/st b/st index 53e4867..3cbae61 100755 Binary files a/st and b/st differ diff --git a/st.c b/st.c index 16a7df6..4b6e632 100644 --- a/st.c +++ b/st.c @@ -956,7 +956,7 @@ ttyresize(int tw, int th) } void -ttyhangup() +ttyhangup(void) { /* Send SIGHUP to shell */ kill(pid, SIGHUP); diff --git a/st.o b/st.o index a36dc3b..8f7d2e1 100644 Binary files a/st.o and b/st.o differ diff --git a/x.c b/x.c index 33ea66a..fd45ba2 100644 --- a/x.c +++ b/x.c @@ -258,6 +258,7 @@ static char *opt_name = NULL; static char *opt_title = NULL; static uint buttons; /* bit field of pressed buttons */ +static int cursorblinks = 0; void clipcopy(const Arg *dummy) diff --git a/x.o b/x.o index 67e1eed..3938bb2 100644 Binary files a/x.o and b/x.o differ