r/Clojure • u/Alarmed-Skill7678 • Aug 04 '25
ANSI code based UI library in Clojure
Hi,
I am trying to build a TUI for my Clojure app that can even run on Termux. So I was searching for such a library in Clojure but found only Clojure Lanterna and nothing other useful.
Can anyone please help me with some leads?
10
Upvotes
4
u/p-himik Aug 04 '25
But is Lanterna not suitable for your needs? In what way?
If you need only the SGR subset, then https://github.com/paintparty/bling.
3
u/v4ss42 Aug 04 '25
Depends what you mean by “UI”, but I’ve used jansi-clj to great effect in some simple command line apps / libraries.
Unlike some other ANSI escape code based libraries it has the advantage of working in the old Windows command prompt (which doesn’t natively support ANSI).
2
u/AsparagusOk2078 Aug 04 '25
I was able to utilize Terminal.Gui version 2 using ClojureCLR. Terminal.Gui v2 is a very awesome .Net library.