Re: [dev] [st] Strange behaviour with bitmap font

2015-02-24 Thread Dmitrij D. Czarkoff
Wander Nauta said: https://i.imgur.com/kXY1jQX.png Don't think it is st's fault. -- Dmitrij D. Czarkoff

Re: [dev] [st] can't use Xterm font

2015-02-24 Thread Samuel Holland
On February 24, 2015 10:10:53 AM CST, Greg Reagle greg.rea...@umbc.edu wrote: It's not the the xterm font, but I am just as happy with the font when I run st -f mono (I am running Xubuntu 14.04). Does anyone know how to figure out specifically which font is being used in this case? Thanks.

Re: [dev] [st] Strange behaviour with bitmap font

2015-02-24 Thread Markus Teich
Wander Nauta wrote: https://i.imgur.com/b4CmiJT.png https://i.imgur.com/kXY1jQX.png Heyho, This really looks like a fail in the graphics driver or hardware to me. Have you tried updating your driver/firmware/kernel/Xorg to current versions? Is st really the only programm causing this glitch?

Re: [dev] [st] can't use Xterm font

2015-02-24 Thread Carlos Torres
the reason xfontsel and xlsfonts aren't that usefull anymore is because of Xft, and fontconfig, of which you should read all the manuals for. there are ways to use xlfd definitions with Xft though. and you can change which mono font you pick up with fontconfig too. --Carlos On Tue, Feb 24,

Re: [dev] [st] Strange behaviour with bitmap font

2015-02-24 Thread Wander Nauta
Hello, Is st really the only programm causing this glitch? I did some more testing, and xterm also behaves weirdly, but only when a program writes lots of output. St goes into disco mode almost immediately. I thought it was only st because Chrome seems to be immune. Have you tried updating

Re: [dev] Suckless unit testing in C?

2015-02-24 Thread FRIGN
On Tue, 24 Feb 2015 13:21:08 -0800 Sam Dodrill shadow.h...@gmail.com wrote: Hey Sam, I was wondering what you all use for a suckless style unit testing framework in C. I use {} for all my unit testing needs. Cheers FRIGN -- FRIGN d...@frign.de

Re: [dev] [st] Strange behaviour with bitmap font

2015-02-24 Thread FRIGN
On Tue, 24 Feb 2015 19:12:01 +0100 Wander Nauta i...@wandernauta.nl wrote: Hey Wander, I'm trying to use Terminus with st, but when I start it it immediately begins to show graphical glitches. The corruption then spreads to other instances of st, and also to instances of xterm, at which point

Re: [dev] [st] Strange behaviour with bitmap font

2015-02-24 Thread Wander Nauta
Hello, I (grudgingly) installed NVIDIA's official binary driver and the problem seems to have gone away. Apologies for the noise, and again, thanks for the pointers. Cheers, Wander On Tue, Feb 24, 2015 at 9:06 PM, Wander Nauta i...@wandernauta.nl wrote: Hello, Is st really the only programm

Re: [dev] [st] can't use Xterm font

2015-02-24 Thread Greg Reagle
On Tue, Feb 24, 2015, at 03:50 PM, Samuel Holland wrote: fc-match mono That works. Thank you so much. I am familiar with the old commands xlsfonts and xfontsel, which, apparently, aren't relevant anymore. I guess X does fonts differently, not like when I learned the old commands years ago.

Re: [dev] Suckless unit testing in C?

2015-02-24 Thread FRIGN
On Tue, 24 Feb 2015 13:58:16 -0800 Louis Santillan lpsan...@gmail.com wrote: Hey Louis, I'm a fan of TAP frameworks [0]. Very minimal, easy to roll you own, consumable by many Unix tools, human machine readable. clibs links to a bunch of pre-written libs as well [1]. kazuho had written

Re: [dev] Suckless unit testing in C?

2015-02-24 Thread Anselm R Garbe
On 24 February 2015 at 22:21, Sam Dodrill shadow.h...@gmail.com wrote: I was wondering what you all use for a suckless style unit testing framework in C. If you apply the Unix principle correctly, main() is your unit test. All you need is creating test input, save the test output and whenever

Re: [dev] Suckless unit testing in C?

2015-02-24 Thread Eduardo A . Bustamante López
On Wed, Feb 25, 2015 at 07:45:58AM +0100, Anselm R Garbe wrote: [...] If you apply the Unix principle correctly, main() is your unit test. All you need is creating test input, save the test output and whenever you call main() with the same test input, you just check for regressions in the

Re: [dev] Suckless unit testing in C?

2015-02-24 Thread Louis Santillan
Of course I understand there's some C++ stuff in there. Throw it out. Not necessary. Two methods is all you need, his plan() ok(). Testing, IMO, is always good. You speak about well-designed interfaces. How do you know if some implementation detail change breaks your usage? And lets say this

Re: [dev] Suckless unit testing in C?

2015-02-24 Thread Louis Santillan
I'm a fan of TAP frameworks [0]. Very minimal, easy to roll you own, consumable by many Unix tools, human machine readable. clibs links to a bunch of pre-written libs as well [1]. kazuho had written this 35 line example of a lib [2] that exports all you need to basic TAP, which is like 75% of

Re: [dev] [st] can't use Xterm font

2015-02-24 Thread Martti Kühne
Another option to find the font that I would apply for this class of problem is to grep through strace's output... But maybe I'm just too lazy to take the whole GUI magic too serious. cheers! mar77i