Introduction
Introduction Statistics Contact Development Disclaimer Help
tAdd preliminary blink stubs. Real implementation is still missing. - st - [for…
git clone git://src.adamsgaard.dk/st
Log
Files
Refs
README
LICENSE
---
commit 121d9109e8202aaa8df836f2d23922008bdf2c72
parent c092bce366ce7469e92f59c889b31fa9037976b2
Author: Christoph Lohmann <[email protected]>
Date: Wed, 12 Sep 2012 13:08:26 +0200
Add preliminary blink stubs. Real implementation is still missing.
Diffstat:
M st.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/st.c b/st.c
t@@ -77,6 +77,7 @@ enum glyph_attribute {
ATTR_BOLD = 4,
ATTR_GFX = 8,
ATTR_ITALIC = 16,
+ ATTR_BLINK = 32,
};
enum cursor_movement {
t@@ -1133,7 +1134,7 @@ tsetattr(int *attr, int l) {
switch(attr[i]) {
case 0:
term.c.attr.mode &= ~(ATTR_REVERSE | ATTR_UNDERLINE | …
- | ATTR_ITALIC);
+ | ATTR_ITALIC | ATTR_BLINK);
term.c.attr.fg = DefaultFG;
term.c.attr.bg = DefaultBG;
break;
t@@ -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;
t@@ -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;
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.