I dunno if this is appropriate for this community, so mods, please delete if not.
I have been writing a screen
clone in rust.
https://github.com/cameroncros/PoorMansScreen/tree/better_screen (The main branch is how I currently use it, not at all screen-like, the better_screen branch is much closer to a screen replacement.)
It all currently works fine, albeit quite simple, and I suspect not following best practices. Please talk shit about my code so I can fix that :D
For my next stage of development, I would like to use some combo of vt100
and ratatui
to wrap the shell in a border, or add a menu bar at the top or bottom to make it clear when the user is inside a “screen”. Does anyone have any thoughts on how to go about doing that? I am very unskilled at ratatui.
Screen is actually way more powerful than just opening a persistent session on the server side. It’s a terminal multiplexer, and you can use it to manage not only normal tty, but also USB serial! By replacing screen are you also going to recreate all the options like baud rate and /dev/ttyUSB0?
Yeah, its a bit of a mess, it does so much. The thing I wanted was just the persistent sessions, so probably not gonna go further than that. Of course, the code exists, and someone else is welcome to take it and run with it (I’ll give it a permissive licence eventually).
for the minimal use case this exists as well. https://github.com/crigler/dtach
Lol, if only I had known about this a year ago, that’s exactly what I wanted/needed.
I guess I could change the topic name to “Rewrite of
dtach
in Rust” :/