https://git.suckless.org/st/commit/5a4666c19e3956069147aee43a06b326d998366e.html add a few comments https://git.suckless.org/st/commit/5a4666c19e3956069147aee43a06b326d998366e.html Support OSC 110, 111, and 112 for resetting colors This adds support for OSC 110, 111, and 112 escape sequences to reset the foreground, background, and cursor colors in the terminal. The changes include handling these sequences in the `strhandle` function of `st.c`, allowing applications to reset colors to their default values. The OSC sequences originated from Xterm control sequences and are now widely used in terminal applications and supported by many terminal emulators. For applications, this allows them to reset colors to default values without needing to know the colors beforehand. https://git.suckless.org/st/commit/d6c431859c6c0201e0668ed24a9f17cebf0a68f5.html
57 lines
1.6 KiB
Makefile
57 lines
1.6 KiB
Makefile
# st version
|
|
VERSION = 0.9.3
|
|
|
|
# Customize below to fit your system
|
|
|
|
# paths
|
|
PREFIX = /usr/local
|
|
MANPREFIX = $(PREFIX)/share/man
|
|
ICONPREFIX = $(PREFIX)/share/pixmaps
|
|
ICONNAME = st.png
|
|
|
|
X11INC = /usr/X11R6/include
|
|
X11LIB = /usr/X11R6/lib
|
|
|
|
PKG_CONFIG = pkg-config
|
|
|
|
# Uncomment this for the alpha patch / ALPHA_PATCH
|
|
#XRENDER = `$(PKG_CONFIG) --libs xrender`
|
|
|
|
# Uncomment this for the themed cursor patch / THEMED_CURSOR_PATCH
|
|
#XCURSOR = `$(PKG_CONFIG) --libs xcursor`
|
|
|
|
# Uncomment the lines below for the ligatures patch / LIGATURES_PATCH
|
|
#LIGATURES_C = hb.c
|
|
#LIGATURES_H = hb.h
|
|
#LIGATURES_INC = `$(PKG_CONFIG) --cflags harfbuzz`
|
|
#LIGATURES_LIBS = `$(PKG_CONFIG) --libs harfbuzz`
|
|
|
|
# Uncomment this for the SIXEL patch / SIXEL_PATCH
|
|
#SIXEL_C = sixel.c sixel_hls.c
|
|
#SIXEL_LIBS = `$(PKG_CONFIG) --libs imlib2`
|
|
|
|
# Uncomment for the netwmicon patch / NETWMICON_PATCH
|
|
#NETWMICON_LIBS = `$(PKG_CONFIG) --libs gdlib`
|
|
|
|
# includes and libs, uncomment harfbuzz for the ligatures patch
|
|
INCS = -I$(X11INC) \
|
|
`$(PKG_CONFIG) --cflags fontconfig` \
|
|
`$(PKG_CONFIG) --cflags freetype2` \
|
|
$(LIGATURES_INC)
|
|
LIBS = -L$(X11LIB) -lm -lX11 -lutil -lXft ${SIXEL_LIBS} ${XRENDER} ${XCURSOR}\
|
|
`$(PKG_CONFIG) --libs fontconfig` \
|
|
`$(PKG_CONFIG) --libs freetype2` \
|
|
$(LIGATURES_LIBS) \
|
|
$(NETWMICON_LIBS)
|
|
|
|
# flags
|
|
STCPPFLAGS = -DVERSION=\"$(VERSION)\" -DICON=\"$(ICONPREFIX)/$(ICONNAME)\" -D_XOPEN_SOURCE=600
|
|
STCFLAGS = $(INCS) $(STCPPFLAGS) $(CPPFLAGS) $(CFLAGS)
|
|
STLDFLAGS = $(LIBS) $(LDFLAGS)
|
|
|
|
# OpenBSD:
|
|
#CPPFLAGS = $(STCPPFLAGS) -D_XOPEN_SOURCE=600
|
|
#MANPREFIX = ${PREFIX}/man
|
|
|
|
# compiler and linker
|
|
# CC = c99
|