How to use ratatui with an "emulated PTY"? Eg serving over an SSH server? #643
Replies: 2 comments 4 replies
-
This is probably something that would be implemented upstream in Crossterm, Termion (both of which support constructing a backend passing in anything that implements the There is example code for termion in the russh repo https://github.com/search?q=repo%3Awarp-tech%2Frussh+termion&type=code, but it looks like it's just the client side not the server side. It might be worth asking over on russh about Crossterm / Termion on the server side of things. Alternatively if that approach doesn't work out you could write a backend that implements I look forward to seeing what you come up with. |
Beta Was this translation helpful? Give feedback.
-
Quick update on this discussion as russh maintainers recently created an example app with ratatui here :) |
Beta Was this translation helpful? Give feedback.
-
Hi folks! 👋 I'm curious if ratatui support rendering to an "emulated PTY", eg. a PTY handled by an SSH server. I'm working on building a custom SSH server with russh that serves a TUI application over the connection. In an ideal world I'd like to be able to use hook everything together in-process such that ratatui renders to an SSH client's PTY.
Can ratatui handle such a usecase? What would be the best way to go about it?
Beta Was this translation helpful? Give feedback.
All reactions