aboutsummaryrefslogtreecommitdiffstats
path: root/st.c
diff options
context:
space:
mode:
authorChristoph Lohmann <20h@r-36.net>2012-09-12 13:08:26 +0200
committerChristoph Lohmann <20h@r-36.net>2012-09-12 13:08:26 +0200
commit121d9109e8202aaa8df836f2d23922008bdf2c72 (patch)
tree48aac69ffaad30e967b102b472087f1332de1497 /st.c
parentc092bce366ce7469e92f59c889b31fa9037976b2 (diff)
downloadst-121d9109e8202aaa8df836f2d23922008bdf2c72.tar.gz
Add preliminary blink stubs. Real implementation is still missing.
Diffstat (limited to 'st.c')
-rw-r--r--st.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/st.c b/st.c
index f3b0b08..5e8cf02 100644
--- a/st.c
+++ b/st.c
@@ -77,6 +77,7 @@ enum glyph_attribute {
ATTR_BOLD = 4,
ATTR_GFX = 8,
ATTR_ITALIC = 16,
+ ATTR_BLINK = 32,
};
enum cursor_movement {
@@ -1133,7 +1134,7 @@ tsetattr(int *attr, int l) {
switch(attr[i]) {
case 0:
term.c.attr.mode &= ~(ATTR_REVERSE | ATTR_UNDERLINE | ATTR_BOLD \
- | ATTR_ITALIC);
+ | ATTR_ITALIC | ATTR_BLINK);
term.c.attr.fg = DefaultFG;
term.c.attr.bg = DefaultBG;
break;
@@ -1146,6 +1147,9 @@ tsetattr(int *attr, int l) {
case 4:
term.c.attr.mode |= ATTR_UNDERLINE;
break;
+ case 5:
+ term.c.attr.mode |= ATTR_BLINK;
+ break;
case 7:
term.c.attr.mode |= ATTR_REVERSE;
break;
@@ -1158,6 +1162,9 @@ tsetattr(int *attr, int l) {
case 24:
term.c.attr.mode &= ~ATTR_UNDERLINE;
break;
+ case 25:
+ term.c.attr.mode &= ~ATTR_BLINK;
+ break;
case 27:
term.c.attr.mode &= ~ATTR_REVERSE;
break;
remember that computers suck.