Skip to content

Latest commit

 

History

History
48 lines (42 loc) · 2.24 KB

README.md

File metadata and controls

48 lines (42 loc) · 2.24 KB

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