Compare commits

..

9 Commits

Author SHA1 Message Date
celso ec645fab2a made font bigger for new glasses 2023-12-25 20:45:29 -03:00
celso 475678ae60 fixed japanese font issue 2023-11-16 00:01:13 -03:00
celso 5f5a25c751 added keyboard select patch 2023-11-15 23:56:12 -03:00
celso f00de22d8f added st-mouse-altscreen and st-anysize patches 2023-11-15 23:56:12 -03:00
celso 5220cf7d2f added st-scrollback-mouse patch 2023-11-15 23:56:12 -03:00
celso 747cde7deb added st-reflow patch 2023-11-15 23:56:12 -03:00
celso 7988ad27e7 added st-scrollback 2023-11-15 23:56:12 -03:00
celso ad3b02e7a1 added st-delkey patch 2023-11-15 23:56:12 -03:00
celso dbe3adcf96 modified config.mk for asus_desk 2023-11-15 23:56:01 -03:00
3 changed files with 6 additions and 11 deletions

View File

@ -57,7 +57,7 @@ int allowwindowops = 0;
* near minlatency, but it waits longer for slow updates to avoid partial draw. * near minlatency, but it waits longer for slow updates to avoid partial draw.
* low minlatency will tear/flicker more, as it can "detect" idle too early. * low minlatency will tear/flicker more, as it can "detect" idle too early.
*/ */
static double minlatency = 2; static double minlatency = 8;
static double maxlatency = 33; static double maxlatency = 33;
/* /*

View File

@ -1,5 +1,5 @@
# st version # st version
VERSION = 0.9.1 VERSION = 0.9
# Customize below to fit your system # Customize below to fit your system

13
st.c
View File

@ -112,8 +112,8 @@ enum escape_state {
typedef struct { typedef struct {
Glyph attr; /* current char attributes */ Glyph attr; /* current char attributes */
int x; /* terminal column */ int x;
int y; /* terminal row */ int y;
char state; char state;
} TCursor; } TCursor;
@ -1869,7 +1869,7 @@ csihandle(void)
ttywrite(vtiden, strlen(vtiden), 0); ttywrite(vtiden, strlen(vtiden), 0);
break; break;
case 'b': /* REP -- if last char is printable print it <n> more times */ case 'b': /* REP -- if last char is printable print it <n> more times */
LIMIT(csiescseq.arg[0], 1, 65535); DEFAULT(csiescseq.arg[0], 1);
if (term.lastc) if (term.lastc)
while (csiescseq.arg[0]-- > 0) while (csiescseq.arg[0]-- > 0)
tputc(term.lastc); tputc(term.lastc);
@ -1963,7 +1963,6 @@ csihandle(void)
} }
break; break;
case 'S': /* SU -- Scroll <n> line up */ case 'S': /* SU -- Scroll <n> line up */
if (csiescseq.priv) break;
DEFAULT(csiescseq.arg[0], 1); DEFAULT(csiescseq.arg[0], 1);
/* xterm, urxvt, alacritty save this in history */ /* xterm, urxvt, alacritty save this in history */
tscrollup(term.top, term.bot, csiescseq.arg[0], SCROLL_SAVEHIST); tscrollup(term.top, term.bot, csiescseq.arg[0], SCROLL_SAVEHIST);
@ -2405,16 +2404,12 @@ tstrsequence(uchar c)
void void
tcontrolcode(uchar ascii) tcontrolcode(uchar ascii)
{ {
size_t i;
switch (ascii) { switch (ascii) {
case '\t': /* HT */ case '\t': /* HT */
tputtab(1); tputtab(1);
return; return;
case '\b': /* BS */ case '\b': /* BS */
for (i = 1; term.c.x && term.line[term.c.y][term.c.x - i].u == 0; ++i) tmoveto(term.c.x-1, term.c.y);
;
tmoveto(term.c.x - i, term.c.y);
return; return;
case '\r': /* CR */ case '\r': /* CR */
tmoveto(0, term.c.y); tmoveto(0, term.c.y);