Re: [dev] [st] [PATCH] Explicit cast in CEIL macro

2014-06-25 Thread Anders Eurenius
You kids have heard about testing, right? (Yes, that was incendiary) The right way to deal with things like this is to make a few obvious test cases and test. It's hard, because testing in C just sucks, but that's another story. cheers aes

Re: [dev] [PATCH] Render faint attribute

2014-06-24 Thread Anders Eurenius
> Greetings, > could you provide a use-case for this attribute? It seems very obscure > to me, and not so long ago, there was a huge debate which resulted in > mucking with colours being interpreted as negative. Not really. I'm going to keep it in, but you go ahead and do whatever. cheers aes

[dev] [PATCH] Add fast blink support

2014-06-24 Thread Anders Eurenius
00:00 2001 From: Anders Eurenius Date: Sun, 22 Jun 2014 16:02:06 +0200 Subject: [PATCH 7/8] Add fast blink support Fast blink is implemented using the new main loop changes. It may mark a few characters too many as dirty when the blink state hasn't changed, but it's not a major i

[dev] [PATCH] Refactor the mainloop

2014-06-24 Thread Anders Eurenius
Refactor the mainloop Try to separate the different concerns of the main loop into separate, simpler functions. I think it's a useful step, but I also think that more should be done. cheers aes From 015e8b45b18690d81e2505309753efaa8af9799d Mon Sep 17 00:00:00 2001 From: A

[dev] [PATCH] Move default rows, cols to config.def.h

2014-06-24 Thread Anders Eurenius
Move default rows, cols to config.def.h Add default_cols, default_rows as static ints in the config.def.h header, instead of using constants directly in the code. cheers aes From ba8a00c0c2b10b5b3224ce6c9f498e07352cec5d Mon Sep 17 00:00:00 2001 From: Anders Eurenius Date: Sat, 21

[dev] [PATCH] Render faint attribute

2014-06-24 Thread Anders Eurenius
: Anders Eurenius Date: Sun, 22 Jun 2014 00:10:59 +0200 Subject: [PATCH 4/8] Render faint attribute Faint text is implemented by allocating a new color at one-half intensity of each of the r, g, b components, or if the text bold at the same time, it is not made lighter. --- st.c | 10

[dev] [PATCH] Render struck-out attribute

2014-06-24 Thread Anders Eurenius
Render struck-out attribute Implement crossed-out text with an XftDrawRect call, similar to how underline is implemented. The line is drawn at 2/3 of the font ascent, which seems to work nicely in practice. cheers aes

[dev] [PATCH] Render struck-out attribute

2014-06-24 Thread Anders Eurenius
:00:00 2001 From: Anders Eurenius Date: Sat, 21 Jun 2014 20:32:34 +0200 Subject: [PATCH 3/8] Render struck-out attribute Implement crossed-out text with an XftDrawRect call, similar to how underline is implemented. The line is drawn at 2/3 of the font ascent, which seems to work nicely in practice

[dev] [PATCH] Render invisible attribute

2014-06-24 Thread Anders Eurenius
f006ec9c526893d65d798b1ed94b650b925d2c30 Mon Sep 17 00:00:00 2001 From: Anders Eurenius Date: Sat, 21 Jun 2014 20:30:22 +0200 Subject: [PATCH 2/8] Render invisible attribute Implement invisible mode by setting the foreground color to be the same as the background color. Not rendering anything would also

[dev] [PATCH] Reorder-and-extend-glyph-attributes

2014-06-24 Thread Anders Eurenius
Ok, no problem​. aes From eedd5902aa34efb9d2cd7bd2565286753a318c64 Mon Sep 17 00:00:00 2001 From: Anders Eurenius Date: Sat, 21 Jun 2014 20:29:36 +0200 Subject: [PATCH 1/8] Reorder and extend glyph attributes Faint, invisible, struck and fast blink are added as glyph attributes. Since there&#

Re: [dev] Fwd: st patches for more attrs

2014-06-23 Thread Anders Eurenius
> Hey Anders, > > impressive patch. I see that it probably has taken some time to write. Well, it was a lazy sunday afternoon, nothing serious. >> The fast-blink support involves a bit of mucking about in the main >> loop, and is a bit more debatable. I'm not entirely happy with it, but >> it doe

[dev] Fwd: st patches for more attrs

2014-06-23 Thread Anders Eurenius
17 00:00:00 2001 From: Anders Eurenius Date: Sat, 21 Jun 2014 20:29:36 +0200 Subject: [PATCH 1/6] Reorder and extend glyph attributes --- st.c | 60 ++-- 1 file changed, 46 insertions(+), 14 deletions(-) diff --git a/st.c b/st.c index 26

Re: [dev] C coded lightweight Linux vector graphics editor

2014-06-23 Thread Anders Eurenius
I think the code is probably horrendous, but I kind of like xfig, it has a kind of brutal simplicity, but it can still handle complex drawings well. Incidentally, I've used it to export postscript that was then templated using the {{tags}} entered in xfig directly cheers aes