Re:Spectre.Console lets you make beautiful console apps with...
by timvisee on Tuesday November 24, 2020 @07:52AM
(#25197979)
Though TUIs have its place, this totally destroys the ability for text processing used a lot on Unix platforms where a more simple output would suffice. For some applications like this it might be better to go for a non-terminal GUI anyway.
[ Parent
| on HN ]
Re:Spectre.Console lets you make beautiful console apps with...
by fratajcz on Tuesday November 24, 2020 @08:34AM
(#25198264)
You can check if stdout is a tty: if it's not, you output raw text. GNU ls does this: by default it outputs in a multiple column layout, but when piped, it outputs one file per line.
Re:Spectre.Console lets you make beautiful console apps with...
by piaste on Tuesday November 24, 2020 @08:13AM
(#25198115)
Terminal (human) UI and scripting (machine) UI should be separate if the latter is a concern at all.
Think Debian's apt which is intended for human use, while apt-get is for scripts and sticks to a predictable console output.
Re:Spectre.Console lets you make beautiful console apps with...
by sokoloff on Tuesday November 24, 2020 @08:18AM
(#25198156)
TIL the difference between apt and apt-get; Thanks! (I was often a little bit curious, but never quite curious enough to go chase it down.)