IConsoleDriver.cs 556 B

123456789101112131415161718192021222324252627
  1. using System;
  2. using System.IO;
  3. using System.Text;
  4. namespace BepInEx
  5. {
  6. internal interface IConsoleDriver
  7. {
  8. TextWriter StandardOut { get; }
  9. TextWriter ConsoleOut { get; }
  10. bool ConsoleActive { get; }
  11. bool ConsoleIsExternal { get; }
  12. void Initialize(bool alreadyActive);
  13. void CreateConsole();
  14. void DetachConsole();
  15. void SetConsoleColor(ConsoleColor color);
  16. // Apparently Windows code-pages work in Mono.
  17. // https://stackoverflow.com/a/33456543
  18. void SetConsoleEncoding(uint codepage);
  19. void SetConsoleTitle(string title);
  20. }
  21. }