Program.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. using System;
  2. namespace MiniTerm
  3. {
  4. /// <summary>
  5. /// C# version of:
  6. /// https://blogs.msdn.microsoft.com/commandline/2018/08/02/windows-command-line-introducing-the-windows-pseudo-console-conpty/
  7. /// https://docs.microsoft.com/en-us/windows/console/creating-a-pseudoconsole-session
  8. ///
  9. /// System Requirements:
  10. /// As of September 2018, requires Windows 10 with the "Windows Insider Program" installed for Redstone 5.
  11. /// Also requires the Windows Insider Preview SDK: https://www.microsoft.com/en-us/software-download/windowsinsiderpreviewSDK
  12. /// </summary>
  13. /// <remarks>
  14. /// Basic design is:
  15. /// Terminal UI starts the PseudoConsole, and controls it using a pair of PseudoConsolePipes
  16. /// Terminal UI will run the Process (cmd.exe) and associate it with the PseudoConsole.
  17. /// </remarks>
  18. //static class Program
  19. //{
  20. // static void Main(string[] args)
  21. // {
  22. // try
  23. // {
  24. // var terminal = new Terminal();
  25. // terminal.Run("cmd.exe");
  26. // }
  27. // catch (InvalidOperationException e)
  28. // {
  29. // Console.Error.WriteLine(e.Message);
  30. // throw;
  31. // }
  32. // }
  33. //}
  34. }