SolraBizna / liso

Line input with simultaneous output, for Rust.
Apache License 2.0
9 stars 2 forks source link

IO from sources other than stdin/stdout #12

Open slbsh opened 1 week ago

slbsh commented 1 week ago

Yellow! I'm working on an ssh chat thing using russh, premise being you don't need any extra software to use, just a regular ssh client (which I assume everyone already has).

I've made a "proof of concept" prototype using liso, and by abusing sshd. Would have a server running locally, anyone that connects through ssh would spawn an instance of the client, and the client/server talked over tcp locally. That was easy enough cause liso already reads/writes to a terminal directly.

Right now I'm rewriting it to use russh, meaning the server can handle ssh connections directly, which would be the "proper" way to do it. I dont think there's a way for liso to do this currently, no? Like Read/Write to an ssh connection.

Is this even a feature we want? I havent really looked into how liso is structured, so no idea if that's even possible. If it is, I could take a shot at implementing it.