4 ms·
TUIs over ssh/telnet can be a lot of fun. Especially in cases where multiple people can interact with each other on the server. It simplifies the programming mo
by bkolobara 5y ago
TUIs over ssh/telnet can be a lot of fun. Especially in cases where multiple people can interact with each other on the server. It simplifies the programming model as you only have one state on the backend that you render to multiple connections. Syncing up everyone becomes trivial. You can also use some React concepts, like rendering a virtual TUI and sending just the right set of minimal escape sequences back to the user to bring their display up to date.
A few months ago I implemented a telnet chat server[0] for fun and it was surprisingly easy to do so. Even by using a wasm vm that I was still working on at the same time.
[0]: https://github.com/lunatic-solutions/chat https://github.com/lunatic-solutions/chat
- simon04 5y agoOr the awesome https://github.com/rastapasta/mapscii https://github.com/rastapasta/mapscii :))
- collinmanderson 5y agoYeah I was just thinking it's about time React Native made it to the command line.