Compare commits

..

7 Commits

Author SHA1 Message Date
celso a451d5c84e added keyboard select patch 2023-07-17 20:49:54 -03:00
celso 93c109dc76 added st-mouse-altscreen and st-anysize patches 2023-07-15 22:46:24 -03:00
celso f68e509253 added st-scrollback-mouse patch 2023-07-15 22:39:04 -03:00
celso a8fdf559e8 added st-reflow patch 2023-07-15 22:37:57 -03:00
celso c8b1180625 added st-scrollback 2023-07-15 22:33:55 -03:00
celso 68f0779ed6 added st-delkey patch 2023-07-15 22:33:23 -03:00
celso c82a6683a6 modified config.mk for dell_laptop 2023-07-15 22:32:24 -03:00
4 changed files with 11 additions and 15 deletions

View File

@ -7,7 +7,13 @@ include config.mk
SRC = st.c x.c
OBJ = $(SRC:.c=.o)
all: st
all: options st
options:
@echo st build options:
@echo "CFLAGS = $(STCFLAGS)"
@echo "LDFLAGS = $(STLDFLAGS)"
@echo "CC = $(CC)"
config.h:
cp config.def.h config.h
@ -48,4 +54,4 @@ uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/st
rm -f $(DESTDIR)$(MANPREFIX)/man1/st.1
.PHONY: all clean dist install uninstall
.PHONY: all options clean dist install uninstall

8
st.c
View File

@ -1332,8 +1332,6 @@ selscroll(int top, int bot, int n)
/* turn absolute coordinates into relative */
top += term.scr, bot += term.scr;
if (sel.ob.x == -1 || sel.alt != IS_SET(MODE_ALTSCREEN))
return;
if (BETWEEN(sel.nb.y, top, bot) != BETWEEN(sel.ne.y, top, bot)) {
selclear();
} else if (BETWEEN(sel.nb.y, top, bot)) {
@ -2560,7 +2558,6 @@ eschandle(uchar ascii)
treset();
resettitle();
xloadcols();
xsetmode(0, MODE_HIDE);
break;
case '=': /* DECPAM -- Application keypad */
xsetmode(1, MODE_APPKEYPAD);
@ -2709,10 +2706,7 @@ check_control_code:
}
if (term.c.x+width > term.col) {
if (IS_SET(MODE_WRAP))
tnewline(1);
else
tmoveto(term.col - width, term.c.y);
tnewline(1);
gp = &term.line[term.c.y][term.c.x];
}

View File

@ -184,10 +184,6 @@ st-mono| simpleterm monocolor,
# XTerm extensions
rmxx=\E[29m,
smxx=\E[9m,
BE=\E[?2004h,
BD=\E[?2004l,
PS=\E[200~,
PE=\E[201~,
# disabled rep for now: causes some issues with older ncurses versions.
# rep=%p1%c\E[%p2%{1}%-%db,
# tmux extensions, see TERMINFO EXTENSIONS in tmux(1)

4
x.c
View File

@ -824,7 +824,7 @@ xloadcols(void)
int
xgetcolor(int x, unsigned char *r, unsigned char *g, unsigned char *b)
{
if (!BETWEEN(x, 0, dc.collen - 1))
if (!BETWEEN(x, 0, dc.collen))
return 1;
*r = dc.col[x].color.red >> 8;
@ -839,7 +839,7 @@ xsetcolorname(int x, const char *name)
{
Color ncolor;
if (!BETWEEN(x, 0, dc.collen - 1))
if (!BETWEEN(x, 0, dc.collen))
return 1;
if (!xloadcolor(x, name, &ncolor))