Compare commits
21 commits
b9939ae113
...
4c439e7b8e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4c439e7b8e | ||
|
|
0814fc7a5d | ||
|
|
3d9c53068d | ||
|
|
9e96ffc61e | ||
|
|
f2fdc033cb | ||
|
|
f627e69374 | ||
|
|
5efe76d0f6 | ||
|
|
a2c1ab5706 | ||
|
|
4a5abeb82a | ||
|
|
89749e9515 | ||
|
|
405415b61d | ||
|
|
cc4388ac0d | ||
|
|
a3de76da58 | ||
|
|
03c0eb9d1e | ||
|
|
d8bf6e236f | ||
|
|
74ca31c0ec | ||
|
|
51ba63e165 | ||
|
|
a7d0ea2d33 | ||
|
|
dab1ddca8c | ||
|
|
721a690877 | ||
|
|
cc852e9a86 |
4 changed files with 12 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
Similar to [dwm-flexipatch](https://github.com/bakkeby/dwm-flexipatch) this st 0.9.3 (6e97047, 2025-08-09) project has a different take on st patching. It uses preprocessor directives to decide whether or not to include a patch during build time. Essentially this means that this build, for better or worse, contains both the patched _and_ the original code. The aim being that you can select which patches to include and the build will contain that code and nothing more.
|
||||
Similar to [dwm-flexipatch](https://github.com/bakkeby/dwm-flexipatch) this st 0.9.3 (688f70a, 2026-01-15) project has a different take on st patching. It uses preprocessor directives to decide whether or not to include a patch during build time. Essentially this means that this build, for better or worse, contains both the patched _and_ the original code. The aim being that you can select which patches to include and the build will contain that code and nothing more.
|
||||
|
||||
For example to include the `alpha` patch then you would only need to flip this setting from 0 to 1 in [patches.h](https://github.com/bakkeby/st-flexipatch/blob/master/patches.def.h):
|
||||
```c
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
static char *font = "Cascadia Code NF:regular:pixelsize=13.5:fontfeatures=calt,ss01:antialias=true:autohint=true";
|
||||
#if FONT2_PATCH
|
||||
/* Spare fonts */
|
||||
static char *font2[] = { "CaskaydiaCove Nerd Font:pixelsize=13.5:antialias=true:autohint=true" };
|
||||
static char *font2[] = { "emoji:pixelsize=13.5:antialias=true:autohint=true" };
|
||||
#endif // FONT2_PATCH
|
||||
|
||||
#if BACKGROUND_IMAGE_PATCH
|
||||
|
|
|
|||
|
|
@ -51,6 +51,7 @@
|
|||
|
||||
devShell = pkgs.mkShell {
|
||||
inputsFrom = [ packages.st ];
|
||||
hardeningDisable = [ "fortify" ];
|
||||
packages = with pkgs; [
|
||||
bear
|
||||
clang-tools
|
||||
|
|
|
|||
9
st.c
9
st.c
|
|
@ -1102,6 +1102,9 @@ tsetdirt(int top, int bot)
|
|||
{
|
||||
int i;
|
||||
|
||||
if (term.row <= 0)
|
||||
return;
|
||||
|
||||
LIMIT(top, 0, term.row-1);
|
||||
LIMIT(bot, 0, term.row-1);
|
||||
|
||||
|
|
@ -3332,6 +3335,7 @@ eschandle(uchar ascii)
|
|||
resettitle();
|
||||
xloadcols();
|
||||
xsetmode(0, MODE_HIDE);
|
||||
xsetmode(0, MODE_BRCKTPASTE);
|
||||
#if SCROLLBACK_PATCH && !REFLOW_PATCH
|
||||
if (!IS_SET(MODE_ALTSCREEN)) {
|
||||
term.scr = 0;
|
||||
|
|
@ -3466,6 +3470,11 @@ check_control_code:
|
|||
return;
|
||||
#if SIXEL_PATCH
|
||||
} else if (term.esc & ESC_DCS) {
|
||||
/* Skip if DCS escape sequence buffer is full */
|
||||
if (csiescseq.len >= sizeof(csiescseq.buf) - 1) {
|
||||
return;
|
||||
}
|
||||
|
||||
csiescseq.buf[csiescseq.len++] = u;
|
||||
if (BETWEEN(u, 0x40, 0x7E)
|
||||
|| csiescseq.len >= \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue