[hackers] [st] Add preliminary blink stubs. Real implementation is still missing. || Christoph Lohmann

From: <hg_AT_suckless.org>
Date: Wed, 12 Sep 2012 13:22:41 +0200 (CEST)

changeset: 293:568ba9ec155f
user: Christoph Lohmann <20h_AT_r-36.net>
date: Wed Sep 12 13:08:26 2012 +0200
files: st.c
description:
Add preliminary blink stubs. Real implementation is still missing.


diff -r 8a93b0c2a955 -r 568ba9ec155f st.c
--- a/st.c Wed Sep 12 13:00:39 2012 +0200
+++ b/st.c Wed Sep 12 13:08:26 2012 +0200
_AT_@ -77,6 +77,7 @@
         ATTR_BOLD = 4,
         ATTR_GFX = 8,
         ATTR_ITALIC = 16,
+ ATTR_BLINK = 32,
 };
 
 enum cursor_movement {
_AT_@ -1133,7 +1134,7 @@
                 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;
_AT_@ -1146,6 +1147,9 @@
                 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;
_AT_@ -1158,6 +1162,9 @@
                 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;
Received on Wed Sep 12 2012 - 13:22:41 CEST

This archive was generated by hypermail 2.3.0 : Wed Sep 12 2012 - 13:24:06 CEST