Replies: 6 comments 10 replies
-
Do you need to use telnet specifically and not just SSH? SSH works out of the box Implementing telnet I think would be a lot of work. Unless I am misunderstanding you would be wanting to have a TCPListener and send the strings yourself kind of like this https://stackoverflow.com/questions/19169893/simple-telnet-console-that-listens-and-accepts-connections It might be possible by implementing your own ConsoleDriver. I would start by looking at the unit testing driver FakeConsole if you want to go down that route. |
Beta Was this translation helpful? Give feedback.
-
@tznind seems right on. In my own code quest, I've seen a C# telnet/ssh terminal code example. This and the other nearby partials. It's starting to look like actually a fair chunk of my old code is going to be rebuilt to work around the TerminalGui core instead of the Spectre console core- it seems like it is a wiser implementation to make the Spectre just use the TerminalGui core in my case. which is not at all relevant to you- but maybe something in my code will help? PS this was the project I recalled |
Beta Was this translation helpful? Give feedback.
-
Actually, @bvarg maybe you should check out the NetDriver? https://github.com/migueldeicaza/gui.cs/blob/main/Terminal.Gui/ConsoleDrivers/NetDriver.cs |
Beta Was this translation helpful? Give feedback.
-
@FreddieMercurial if the use of @FreddieMercurial in this case you can use the internal |
Beta Was this translation helpful? Give feedback.
-
@bvarg sorry for derailing your issue - we can clean it up maybe as we've moved the conversation elsewhere. |
Beta Was this translation helpful? Give feedback.
-
The original issue is quite ambiguous, Telnet and ssh are transports to connect to a terminal, and Gui.cs will work with any transport, as long as the endpoint can support some basic terminal commands, and the TERM environment variable is correctly configured. |
Beta Was this translation helpful? Give feedback.
-
I need to run the console application rendered as telnet app. Is this doable using this library? If yes is there any samples or anyone can help me directing on how to achieve this.
Beta Was this translation helpful? Give feedback.
All reactions