Update code to newest version

This commit is contained in:
BitHeaven-Official 2023-03-08 13:36:50 +05:00
parent 9726db9903
commit 64bcd6cb5d
9 changed files with 21 additions and 10 deletions

3
FAQ
View File

@ -248,3 +248,6 @@ fonts:
Please don't bother reporting this bug to st, but notify the upstream Xft Please don't bother reporting this bug to st, but notify the upstream Xft
developers about fixing this bug. 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

View File

@ -6,7 +6,7 @@
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html * 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 *font = "Ubuntu Mono:pixelsize="FONTSIZE":antialias=true:autohint=true";
static char *font2[] = { static char *font2[] = {
@ -142,13 +142,20 @@ unsigned int defaultcs = 256;
static unsigned int defaultrcs = 257; static unsigned int defaultrcs = 257;
/* /*
* Default shape of cursor * 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
* 2: Block ("") * Default style of cursor
* 4: Underline ("_") * 0: blinking block
* 6: Bar ("|") * 1: blinking block (default)
* 7: Snowman ("") * 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 * Default columns and rows numbers

View File

@ -6,7 +6,7 @@
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html * 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 *font = "Ubuntu Mono:pixelsize="FONTSIZE":antialias=true:autohint=true";
static char *font2[] = { static char *font2[] = {

View File

@ -1,5 +1,5 @@
# st version # st version
VERSION = 0.8.5 VERSION = bit_1.0
# Customize below to fit your system # Customize below to fit your system

BIN
st

Binary file not shown.

2
st.c
View File

@ -956,7 +956,7 @@ ttyresize(int tw, int th)
} }
void void
ttyhangup() ttyhangup(void)
{ {
/* Send SIGHUP to shell */ /* Send SIGHUP to shell */
kill(pid, SIGHUP); kill(pid, SIGHUP);

BIN
st.o

Binary file not shown.

1
x.c
View File

@ -258,6 +258,7 @@ static char *opt_name = NULL;
static char *opt_title = NULL; static char *opt_title = NULL;
static uint buttons; /* bit field of pressed buttons */ static uint buttons; /* bit field of pressed buttons */
static int cursorblinks = 0;
void void
clipcopy(const Arg *dummy) clipcopy(const Arg *dummy)

BIN
x.o

Binary file not shown.