-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Send screen over the network #137
Comments
Since you mention telnet, I suspect you're talking about a Linux environment... Assuming that's the case, you just run telnet to connect to your Linux box and then run the program inside your telnet session. That's it! If that doesn't cover it, could you please explain your scenario in a little more detail? |
Ah. No. That is not what I meant. I am implementing a telnet server using I hope this makes sense. Thank you very much for the swift reply. 💯 |
OK - I understand now... Asciimatics doesn't have anything like that built-in. The simplest way to achieve what you want is to create a psuedoterminal (a.k.a. a pty) for your telnetserver and then use that to drive a separate process running asciimatics. In a bit more detail, you could write your whole asciimatics application as normal, prove that it works when run locally by you. You then wrap that inside your telnet server using a pty. Sample python code for using pty is available here: https://stackoverflow.com/questions/4022600/python-pty-fork-how-does-it-work If you have to run it all inside a single process, then you'll need to create a new Screen implementation that emulates the terminal - e.g. start from the existing _CursesScreen, but rip out all references to curses and start using the terminal emulation of your choice and printing that directly to your socket stream. There might be a package that already emulates a terminal for you if you really want to try this... I'd recommend the first approach, though. |
I'm assuming this answered the question. |
Thanks for all the help @peterbrittain Any chances you could consider this as a feature request? |
This is a pretty niche area as you are asking for a Screen implementation for (say) a vt100 terminal. This is possible, but always going to be low priority for me. I'll leave it open and see if the community wants it enough to help out. |
Several of our users tried this over SSH. Simply don't do it. It will easily saturate your ethernet port and render everything unresponsive. This might work over for very simple menus which almost never update but everything else will likely be problematic. |
Yeah. Animation etc won’t work. Simple TUIs should. 🙂 |
In theory, the text for a terminal should be way less than the graphics primitives for remote desktop services (e.g. RealVNC), which work fine up to a point (e.g. no video games, please!)... Doesn't change the fact that I'm not planning on working on this any time soon, though. Still leaving this for someone else to do until further notice. |
Hi,
Is it possible to send the screen over to a connected telnet client? If yes, could you please provide a minimal example.
I have a simple menu -- no animations
Thanks for your time,
Abhinav
The text was updated successfully, but these errors were encountered: