What are you working on? - Programming On Unix
Users browsing this thread: 2 Guest(s)
|
|||
A dialog alternative.
It's a project I have since... long. I got some PoCs, now I'm working on the tooling I need. My idea is to write a declarative DSL to manipulate exactly 2 types of elements: nodes and leaves. Nodes would be groups of nodes or (inclusive) leaves, and leaves would be the "widgets". My current thinking is that they can actually be described without using the usual inheritance/derivation hell that can be found in toolkits I've played with, one just need to define a number of rules to describe which values the content should accept. That language would be spoken on stdin and stdout, of course, and if asked to not expect a client, the rendering would be a fdisk-like menu interface. Otherwise, clients could connect to that server, maybe spawned by the server itself, to do the rendering. This is a tool I need in order to achieve other bigger projects, aka build my own distro. This tool would allow me to use shell scripts to build system tools that could be usable with: ssh, TTY, X11, framebuffer... and, yes, I suppose wayland too. I really started to think on this when I wrote a tiny shell script allowing to manage runit daemons, and noticed that a lot of the complexity directly comes from dialog itself. Here is the script, that I place on CC-0 license (no, I don't think I've published it): Code: #!/bin/sh It's not my first dialog script, either. This project I work on because I am really tired of that crapiness. |
|||