membrane-term

lread 2021-11-17T02:19:38.114600Z

Another musing: I think that the line-delay and final-delay options do the job, but was wondering if we might consider something more refined. The idea is to maybe allow directives in play scripts. First thought: something that would allow you to wait for specific text (ex. user=>) before proceeding. But maybe I’m re-inventing AppleScript or something? I dunno.

phronmophobic 2021-11-17T03:06:22.115400Z

at that point, why not just run a clojure script?

phronmophobic 2021-11-17T03:07:59.116300Z

I'd be more inclined to add something like bb support than create a mini dsl

lread 2021-11-17T03:18:13.119100Z

Yeah maybe. I was thinking of maybe employing sci somehow to hook in and wait for interesting events. This was with screenshots in mind. But ya know what? The delay options are maybe a bit general but they do the job, yeah?

phronmophobic 2021-11-17T03:34:35.120200Z

if there's a good use case in mind, then it could make sense. just trying to not fall into the trap where you had some extra keywords, then loops, then variables, then functions, etc.

phronmophobic 2021-11-17T03:36:42.121500Z

scripting on top of a human api is always tricky. if there's a way to improve the programmatic API of either membrane.term or the tool you're trying to screen cap, then that might be another route

phronmophobic 2021-11-17T03:38:25.122800Z

one similar idea I had was to have a "record" feature where you just use the terminal normally and you have tools for exporting the playback however you want

phronmophobic 2021-11-17T03:38:57.123900Z

or you could record as you use the terminal normally and it can also store the timings of your inputs that you could use as a play script

lread 2021-11-17T03:40:29.125200Z

Yeah good points. I'll ponder (maybe). Was thinking of hooking with maybe sci somehow. But realize this can get really over-complicated quickly.

phronmophobic 2021-11-17T03:42:10.126300Z

I've used selenium in the past to script web pages and sometimes it's what you have to do, but it's not usually much fun

phronmophobic 2021-11-17T03:42:41.127Z

the wait for matching input reminded me of that

lread 2021-11-17T03:43:48.127400Z

Yeah reminded me of selenium too.