Compare commits

..

No commits in common. "91db78da081abd006233ccfdae930bb6f3778eff" and "b2f6b7f6ed97b2258f48e0086c26ad00cc80d047" have entirely different histories.

2 changed files with 11 additions and 30 deletions

View file

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

39
st.c
View file

@ -1487,22 +1487,16 @@ tsetattr(const int *attr, int l)
if ((idx = tdefcolor(attr, &i, l)) >= 0)
term.c.attr.fg = idx;
break;
case 39: /* set foreground color to default */
case 39:
term.c.attr.fg = defaultfg;
break;
case 48:
if ((idx = tdefcolor(attr, &i, l)) >= 0)
term.c.attr.bg = idx;
break;
case 49: /* set background color to default */
case 49:
term.c.attr.bg = defaultbg;
break;
case 58:
/* This starts a sequence to change the color of
* "underline" pixels. We don't support that and
* instead eat up a following "5;n" or "2;r;g;b". */
tdefcolor(attr, &i, l);
break;
default:
if (BETWEEN(attr[i], 30, 37)) {
term.c.attr.fg = attr[i] - 30;
@ -1599,7 +1593,7 @@ tsetmode(int priv, int set, const int *args, int narg)
case 1006: /* 1006: extended reporting mode */
xsetmode(set, MODE_MOUSESGR);
break;
case 1034: /* 1034: enable 8-bit mode for keyboard input */
case 1034:
xsetmode(set, MODE_8BIT);
break;
case 1049: /* swap screen & set/restore cursor as xterm */
@ -1607,8 +1601,8 @@ tsetmode(int priv, int set, const int *args, int narg)
break;
tcursor((set) ? CURSOR_SAVE : CURSOR_LOAD);
/* FALLTHROUGH */
case 47: /* swap screen buffer */
case 1047: /* swap screen buffer */
case 47: /* swap screen */
case 1047:
if (!allowaltscreen)
break;
alt = IS_SET(MODE_ALTSCREEN);
@ -1621,7 +1615,7 @@ tsetmode(int priv, int set, const int *args, int narg)
if (*args != 1049)
break;
/* FALLTHROUGH */
case 1048: /* save/restore cursor (like DECSC/DECRC) */
case 1048:
tcursor((set) ? CURSOR_SAVE : CURSOR_LOAD);
break;
case 2004: /* 2004: bracketed paste mode */
@ -1980,7 +1974,7 @@ strhandle(void)
if (narg > 1)
xsettitle(strescseq.args[1]);
return;
case 52: /* manipulate selection data */
case 52:
if (narg > 2 && allowwindowops) {
dec = base64dec(strescseq.args[2]);
if (dec) {
@ -1991,9 +1985,9 @@ strhandle(void)
}
}
return;
case 10: /* set dynamic VT100 text foreground color */
case 11: /* set dynamic VT100 text background color */
case 12: /* set dynamic text cursor color */
case 10:
case 11:
case 12:
if (narg < 2)
break;
p = strescseq.args[1];
@ -2034,19 +2028,6 @@ strhandle(void)
tfulldirt();
}
return;
case 110: /* reset dynamic VT100 text foreground color */
case 111: /* reset dynamic VT100 text background color */
case 112: /* reset dynamic text cursor color */
if (narg != 1)
break;
if ((j = par - 110) < 0 || j >= LEN(osc_table))
break; /* shouldn't be possible */
if (xsetcolorname(osc_table[j].idx, NULL)) {
fprintf(stderr, "erresc: %s color not found\n", osc_table[j].str);
} else {
tfulldirt();
}
return;
}
break;
case 'k': /* old title set compatibility */