st
simple terminal
git clone https://9o.is/git/st.git
commit 5402c9b66aeb03f21646ef862e3e29b883d3d325 parent 473caa9528a536223fcc814a3b9b020acd0454f2 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sat, 9 May 2020 14:03:14 +0200 optimize column width calculation and utf-8 encode for ASCII In particular on OpenBSD and on glibc wcwidth() is quite expensive. On musl there is little difference. Diffstat:
| M | st.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/st.c b/st.c @@ -2307,7 +2307,7 @@ tputc(Rune u) Glyph *gp; control = ISCONTROL(u); - if (!IS_SET(MODE_UTF8 | MODE_SIXEL)) { + if (u < 127 || !IS_SET(MODE_UTF8 | MODE_SIXEL)) { c[0] = u; width = len = 1; } else {