Skip to content

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

License

Notifications You must be signed in to change notification settings

gsw945/PtyTerminal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published