示例#1
0
 public LogConsole(LogConsoleOptions options = null, LogOptions baseOptions = null) : base(baseOptions)
 {
     options = options ?? new LogConsoleOptions();
     if (options.DebugRect != Rectangle.Empty)
     {
         ConsoleUtils.AdjustConsole(options.DebugRect);
     }
 }
示例#2
0
 public LogConsole(LogConsoleOptions options = null, LogOptions baseOptions = null) : base(baseOptions)
 {
     Console.OutputEncoding = Encoding.UTF8;
     options      = options ?? new LogConsoleOptions();
     extendedMode = ConsoleUtils.EnableVirtualTerminalProcessing();
     if (options.DebugRect != Rectangle.Empty)
     {
         ConsoleUtils.AdjustConsole(options.DebugRect);
     }
 }