IConsoleDriver.cs 529 B

1234567891011121314151617181920212223242526
  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. // Apparently Windows code-pages work in Mono.
  14. // https://stackoverflow.com/a/33456543
  15. void CreateConsole(uint codepage);
  16. void DetachConsole();
  17. void SetConsoleColor(ConsoleColor color);
  18. void SetConsoleTitle(string title);
  19. }
  20. }