/PtyTerminal

cross platform Pseudo Terminal (PTY) Library and Usage Demos in .NET(C#). .NET(C#) 跨平台的 伪终端 库, 及其使用示例。

Primary LanguageC#MIT LicenseMIT

PtyTerminal

English | 简体中文

cross platform Pseudo Terminal (PTY) Library and Usage Demos in .NET(C#)

Projects

Pty.Net cross platform Pseudo Terminal (PTY) Library in .NET(C#)

  • Compatibility with ConPTY and winpty on Windows Platform
  • P/Invoke APIs (forkpty ioctl kill ...) on Unix Platforms
    • APIs provided by libc.so.6 and libutil.so.1 for Linux
    • APIs provided by libSystem.dylib for MacOs

PtyWeb

  • CliDemo Console demo to use Pty.Net console-demo.png
  • WebDemo Web demo to use Pty.Net, powered by EmbedIO and Xterm.js
    web-demo-01.png web-demo-02.png

Tips

  • modify Program.cs to switch which Demo to run:
    namespace PtyWeb
    {
        class Program
        {
            static void Main(string[] args)
            {
                CliDemo.Run(); // Console demo
    
                // WebDemo.Run(args); // Web demo
            }
        }
    }
  • TODO: Replace EmbedIO with WebSockets support in ASP.NET Core

Reference