SSH.NET based color terminal emulator
I am using SSH.NET to build my terminal for UWP.
Currently, I can send / receive data using the library, but I would like to do something like a putty app that displays text with different colors, or even the ability to edit files using the Linux vi editor.
Is there a way to get color / position information in this library?
Thank!
source to share
When implementing terminal emulation, you need to handle the ANSI escape codes sent by the server.
There is no support in SSH.NET or .NET Framework.
Doing it yourself is a huge task. PuTTY, a terminal emulation implementation terminal.c
, has over 6500 lines of code. And this is only part of the processing, the drawing is separate.
A quick google search for C # terminal emulation at:
https://github.com/munificent/malison-dotnet
(although I have no experience with this library)
The only part of this on the SSH.NET side is to request terminal emulation using an overload SshClient.CreateShell
that accepts terminalName
(and its satellites).
source to share