English | 简体中文
cross platform Pseudo Terminal (PTY) Library and Usage Demos in .NET(C#)
Pty.Net cross platform Pseudo Terminal (PTY) Library in .NET(C#)
- Compatibility with
ConPTY
andwinpty
on Windows Platform - P/Invoke APIs (
forkpty
ioctl
kill
...) on Unix Platforms- APIs provided by
libc.so.6
andlibutil.so.1
for Linux - APIs provided by
libSystem.dylib
for MacOs
- APIs provided by
- CliDemo Console demo to use Pty.Net
- WebDemo Web demo to use Pty.Net, powered by EmbedIO and Xterm.js
- 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