Announcing Term.jl, a package inspired by WIll McGougan’s rich package in Python to produce stylized, structured output for your terminal, in Julia.
Term can be used to create colored and styled text, using either dedicated macros or a simple markup language:
But really it’s all about
Renderables structured graphic elements like Panel, TextBox and Tree
Renderables can be composed to create layouts. You can put almost anything in a Panel and vertically/horizontally stack multiple renderables:
Also Term.jl can be used to produce beautiful log and error messages and progress bars
Thank you, it will keep getting better I’ve got a few more features planned
How well do the things like colors work with the inline results of say VSCode @pfitzseb ?
Looks awesome! This will be particularly nice for displaying results of statistical procedures in nice neat tables, with statistically significant features popping out in colour. I’ll definitely be using it.
Thank you! A couple releases down the line Term will also include a Table functionality!
Is this mostly meant for static output or would it also handle resizing of the terminal, and maybe some light interaction?
Currently it can only handle static output (except the progress bars that get “updated” at every referesh, but are not interactive). All you see is basically just text printed out in the terminal.
It might include some interactivity in the future, bot not any time soon.
@findmyway This could be nice for prettier agent tree printing in RL.jl, with colors coding to better differentiate the leaves of the trajectory and the policy and other sub-components for example .
For anyone that wants to stay updated on Term’s development, twitter is the best place: https://twitter.com/Federico_claudi
Great suggestion! Will do!
Impressive! Could it be interactive?
Out of interest, is this package currently accessible to blind / partially sighted users? If not, could someone create an alternative output format which was?
I’m afraid I don’t know anything about how one would go about doing that, but I’d like to! Is there any good resource on the topic?
This is so cool!!! really useful. Thanks a lot!!