aboutsummaryrefslogtreecommitdiff
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
parentc092bce366ce7469e92f59c889b31fa9037976b2 (diff)
downloadst-121d9109e8202aaa8df836f2d23922008bdf2c72.tar.gz
st-121d9109e8202aaa8df836f2d23922008bdf2c72.zip
Add preliminary blink stubs. Real implementation is still missing.
-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 {
77 ATTR_BOLD = 4, 77 ATTR_BOLD = 4,
78 ATTR_GFX = 8, 78 ATTR_GFX = 8,
79 ATTR_ITALIC = 16, 79 ATTR_ITALIC = 16,
80 ATTR_BLINK = 32,
80}; 81};
81 82
82enum cursor_movement { 83enum cursor_movement {
@@ -1133,7 +1134,7 @@ tsetattr(int *attr, int l) {
1133 switch(attr[i]) { 1134 switch(attr[i]) {
1134 case 0: 1135 case 0:
1135 term.c.attr.mode &= ~(ATTR_REVERSE | ATTR_UNDERLINE | ATTR_BOLD \ 1136 term.c.attr.mode &= ~(ATTR_REVERSE | ATTR_UNDERLINE | ATTR_BOLD \
1136 | ATTR_ITALIC); 1137 | ATTR_ITALIC | ATTR_BLINK);
1137 term.c.attr.fg = DefaultFG; 1138 term.c.attr.fg = DefaultFG;
1138 term.c.attr.bg = DefaultBG; 1139 term.c.attr.bg = DefaultBG;
1139 break; 1140 break;
@@ -1146,6 +1147,9 @@ tsetattr(int *attr, int l) {
1146 case 4: 1147 case 4:
1147 term.c.attr.mode |= ATTR_UNDERLINE; 1148 term.c.attr.mode |= ATTR_UNDERLINE;
1148 break; 1149 break;
1150 case 5:
1151 term.c.attr.mode |= ATTR_BLINK;
1152 break;
1149 case 7: 1153 case 7:
1150 term.c.attr.mode |= ATTR_REVERSE; 1154 term.c.attr.mode |= ATTR_REVERSE;
1151 break; 1155 break;
@@ -1158,6 +1162,9 @@ tsetattr(int *attr, int l) {
1158 case 24: 1162 case 24:
1159 term.c.attr.mode &= ~ATTR_UNDERLINE; 1163 term.c.attr.mode &= ~ATTR_UNDERLINE;
1160 break; 1164 break;
1165 case 25:
1166 term.c.attr.mode &= ~ATTR_BLINK;
1167 break;
1161 case 27: 1168 case 27:
1162 term.c.attr.mode &= ~ATTR_REVERSE; 1169 term.c.attr.mode &= ~ATTR_REVERSE;
1163 break; 1170 break;