So one of the problems I have to solve writing my #golang #TUI library #Tooey was formatting text within a drawable area. I ended up writing #rslice which is another library specifically for manipulating []rune and dealing with whitespace, directional justification, and even producing a "full" justification style by normalizing whitespace across a []rune.
The library can be found here with MIT License:
https://github.com/asciifaceman/rslice
Docs:
#golang #tui #tooey #rslice #programming #foss #oss
Well I have the start of a text alignment engine implemented for #tooey Text elements.
I arrived at the conclusion naturally that the easiest path was to always start by doing a Left justification, then flip the whitespace for Right justification, or normalize whitespace across the rune array for full. I still have to do center which is going to be interesting.
#terminalui #tui #golang #tooey #tcell #termui #flex #cli #linux #alacritty #development #go
#tooey #terminalui #tui #golang #tcell #termui #flex #cli #linux #alacritty #development #go
It's in a very early, very rough state but here is my #termui rewrite #tooey
It only has a few core functionalities so far, notably flex-like containers and Text and they all need some more work before I consider anything stable.
For the love of TUIs
#termui #tooey #terminalui #tui #golang #tcell #flex #cli