From 6c6543cfeb1166470f13f3f7e7f3e04bad5d71cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Tue, 16 Jul 2019 13:19:17 +0200 Subject: [PATCH] csi: add back 'blink' attribute --- csi.c | 4 ++-- terminal.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/csi.c b/csi.c index a85fb5f6..8a5ecbb2 100644 --- a/csi.c +++ b/csi.c @@ -163,7 +163,7 @@ csi_sgr(struct terminal *term) case 2: term->vt.dim = true; break; case 3: term->vt.attrs.italic = true; break; case 4: term->vt.attrs.underline = true; break; - case 5: LOG_WARN("unimplemented: %s (blink)", csi_as_string(term, 'm')); /*term->vt.attrs.blink = true; */break; + case 5: term->vt.attrs.blink = true; break; case 6: break; /* rapid blink, ignored */ case 7: term->vt.attrs.reverse = true; break; case 8: term->vt.attrs.conceal = true; break; @@ -173,7 +173,7 @@ csi_sgr(struct terminal *term) case 22: term->vt.attrs.bold = term->vt.dim = false; break; case 23: term->vt.attrs.italic = false; break; case 24: term->vt.attrs.underline = false; break; - case 25: /*term->vt.attrs.blink = false; */break; + case 25: term->vt.attrs.blink = false; break; case 26: break; /* rapid blink, ignored */ case 27: term->vt.attrs.reverse = false; break; case 28: term->vt.attrs.conceal = false; break; diff --git a/terminal.h b/terminal.h index 5975be85..f370f110 100644 --- a/terminal.h +++ b/terminal.h @@ -44,7 +44,7 @@ struct wayland { bool have_argb8888; }; -struct rgb { float r, g, b; } __attribute__((packed)); +struct rgb { float r, g, b; }; /* * Note: we want the cells to be as small as possible. Larger cells