Xinqi Bao's Git
projects
/
st.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
Standout mode has changed. Thanks
[email protected]
!
[st.git]
/
st.c
diff --git
a/st.c
b/st.c
index
163f160
..
213541f
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-436,7
+436,7
@@
typedef struct {
* the current length of used elements.
*/
* the current length of used elements.
*/
-static Fontcache frc[
2048
];
+static Fontcache frc[
1024
];
static int frccur = -1, frclen = 0;
ssize_t
static int frccur = -1, frclen = 0;
ssize_t
@@
-1390,7
+1390,7
@@
tsetattr(int *attr, int l) {
case 1:
term.c.attr.mode |= ATTR_BOLD;
break;
case 1:
term.c.attr.mode |= ATTR_BOLD;
break;
- case 3:
/* enter standout (highlight) */
+ case 3:
term.c.attr.mode |= ATTR_ITALIC;
break;
case 4:
term.c.attr.mode |= ATTR_ITALIC;
break;
case 4:
@@
-1406,7
+1406,7
@@
tsetattr(int *attr, int l) {
case 22:
term.c.attr.mode &= ~ATTR_BOLD;
break;
case 22:
term.c.attr.mode &= ~ATTR_BOLD;
break;
- case 23:
/* leave standout (highlight) mode */
+ case 23:
term.c.attr.mode &= ~ATTR_ITALIC;
break;
case 24:
term.c.attr.mode &= ~ATTR_ITALIC;
break;
case 24:
@@
-2497,7
+2497,7
@@
xinit(void) {
/* double buffering */
if(!XdbeQueryExtension(xw.dpy, &major, &minor))
die("Xdbe extension is not present\n");
/* double buffering */
if(!XdbeQueryExtension(xw.dpy, &major, &minor))
die("Xdbe extension is not present\n");
- xw.buf = XdbeAllocateBackBufferName(xw.dpy, xw.win, Xdbe
Copie
d);
+ xw.buf = XdbeAllocateBackBufferName(xw.dpy, xw.win, Xdbe
Backgroun
d);
/* Xft rendering context */
xw.draw = XftDrawCreate(xw.dpy, xw.buf, xw.vis, xw.cmap);
/* Xft rendering context */
xw.draw = XftDrawCreate(xw.dpy, xw.buf, xw.vis, xw.cmap);