News for hackers. Stuff that matters.
Re:Showing GUIs from Shell Scripts by tdeck on Wednesday October 13, 2021 @02:57AM (#28849033)
I've used wish (https://linux.die.net/man/1/wish) for this in the past and it works pretty well. It used to come installed on many Linux distros but probably does not anymore.

Zenity is also an option.

Re:Showing GUIs from Shell Scripts by tobias12345 on Wednesday October 13, 2021 @03:10AM (#28849117)
Both are wonderful options for some use cases. I would also take one of thise approaches for the simple demo in the blog post.

But the system UI that is also linked in there is something that goes beyond what you can do with e.g. zenity.

This kind of puts (almost) all the power of a modern UI description language in reach of shell scripts.

Re:Showing GUIs from Shell Scripts by kps on Wednesday October 13, 2021 @10:02AM (#28852179)
And tksh (shell with tk builtins), which made (makes, if you take the trouble to install it now) it trivial to add a simple GUI to an existing shell script.
Re:Showing GUIs from Shell Scripts by mst on Wednesday October 13, 2021 @12:15PM (#28854095)
Do you happen to know where there's a copy of the source? The stuff on the tcl wiki all seems to be dead and that sounds fascinating to take apart to learn how it works.
Re:Showing GUIs from Shell Scripts by kps on Wednesday October 13, 2021 @12:38PM (#28854360)
https://github.com/att/ast

There's not really much to it; it's just an example of extending ksh with more builtins, which is simple by design. (I really miss what this did for Sun's dbx debugger — instead of being inside some tool with yet another idiosyncratic command language, your shell just grew commands for interacting with the process being debugged.)

Re:Showing GUIs from Shell Scripts by mst on Wednesday October 13, 2021 @01:54PM (#28855285)
Aha, I shall have a dig through https://github.com/att/ast/tree/master/src/lib/libtksh then.

Thank you kindly.