IConsoleDriver.cs 466 B

123456789101112131415161718192021222324
  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. void SetConsoleEncoding(Encoding encoding);
  17. void SetConsoleTitle(string title);
  18. }
  19. }