User input (from kB / other program)

I think I saw a thread by @robin.newman that mentioned getting user input, both pre/post osc stuff getting added to sp.

I am just getting acquainted with gems and found the open3 thing that can get stuff like web page content and maybe response from cmd ran at cli (cmd, on windows)

Is it possible to do something like import/require a gem/module to get response from user prompt, or maybe keep looping but send a sync/cue event when a response is returned from a process?

I imagine I should just get to grips with OSC (on the list!) But just thought I’d ask the audience as a proof of concept thing…

I guess same question applies to elixir and friends, but I’m not trying to climb that mountain just yet!

Thanks in advance