I'm pleased to announce the first release of zesty, a Tcl library for
rich terminal output.
What is zesty?
zesty is a pure (More or less!) Tcl package that enables developers to
create visually appealing command-line interfaces.
What zesty offers:
- 256-color support.
- Progress bars with time estimation and animations.
- Tables with intelligent word wrapping.
- Styled boxes for content highlighting.
- JSON pretty-printing.
Requirements:
Tcl 8.6 or higher.
Windows: twapi or tcl-cffi >= 2.0
Unix/Linux: ANSI-compatible terminal
Optional huddle::json package (for JSON formatting) from Tcllib
Note : Primary testing has been conducted on Windows (both Windows Terminal.exe and cmd.exe) and macOS. Linux compatibility is expected but
may require additional validation.
Links:
GitHub: https://github.com/nico-robert/zesty
Regards
Nicolas
Looks really nice and widely useful!
One tiny suggestion - on Windows, to detect whether you are running
under the new terminal or not, it might be easier to just check for one
of the WT_SESSION or WT_PROFILE_ID environment variables and traverse
the process ancestors only if those variables do not exist.
/Ashok
Sysop: | DaiTengu |
---|---|
Location: | Appleton, WI |
Users: | 1,064 |
Nodes: | 10 (0 / 10) |
Uptime: | 170:42:37 |
Calls: | 13,692 |
Files: | 186,936 |
D/L today: |
100 files (20,246K bytes) |
Messages: | 2,411,676 |