Re: [dev] [st] font fallback

From: Christoph Lohmann <>
Date: Sat, 05 Jan 2013 18:55:12 +0100


On Sat, 05 Jan 2013 18:55:12 +0100 Charlie Kester <> wrote:
> Of course, some growth is expected as new features are added, but going
> from 38k to 618k is hard to swallow.

On my system:

        % ls -hs st-0.3/st
        126K st
        % strip st-0.3/st && ls -hs st-0.3/st
        % ls -hs scm/st/st
        % strip scm/st/st && ls -hs scm/st/st
        91K st

But I found out what’s causing the 50k(!) increase. It’s the big key[]
array. Simply remove it and you get back the old 48k size. So the ques‐
tion is, if this array could be optimized out. The escape codes only
partially have a system that could be replaced with ranges.

On my system:

        % ls -hs /usr/bin/xterm /usr/bin/urxvt
        1.3M /usr/bin/urxvt 452K /usr/bin/xterm

That array gives st a better escape key support than any other terminal,
but it bloats it with seldom used features and is now more than 50% of
its size. That’s hard to decide. :/

What are the list's opinions?


Christoph Lohmann
Received on Sat Jan 05 2013 - 18:55:12 CET

This archive was generated by hypermail 2.3.0 : Sat Jan 05 2013 - 19:24:04 CET