Пример #1
0
 /// <summary>
 /// Turns on emitting of VT/ANSI sequences.
 /// </summary>
 /// <param name="console">The console.</param>
 /// <returns>The same instance so that multiple calls can be chained.</returns>
 public static AnsiTestConsole EmitAnsiSequences(this AnsiTestConsole console)
 {
     console.SpectreTestConsole.EmitAnsiSequences();
     return(console);
 }
Пример #2
0
 /// <summary>
 /// Sets the console width.
 /// </summary>
 /// <param name="console">The console.</param>
 /// <param name="width">The console width.</param>
 /// <returns>The same instance so that multiple calls can be chained.</returns>
 public static AnsiTestConsole Width(this AnsiTestConsole console, int width)
 {
     console.SpectreTestConsole.Width(width);
     return(console);
 }
Пример #3
0
 /// <summary>
 /// Sets whether or not ANSI is supported.
 /// </summary>
 /// <param name="console">The console.</param>
 /// <param name="enable">Whether or not VT/ANSI control codes are supported.</param>
 /// <returns>The same instance so that multiple calls can be chained.</returns>
 public static AnsiTestConsole SupportsAnsi(this AnsiTestConsole console, bool enable)
 {
     console.SpectreTestConsole.SupportsAnsi(enable);
     return(console);
 }
Пример #4
0
 /// <summary>
 /// Makes the console interactive.
 /// </summary>
 /// <param name="console">The console.</param>
 /// <returns>The same instance so that multiple calls can be chained.</returns>
 public static AnsiTestConsole Interactive(this AnsiTestConsole console)
 {
     console.SpectreTestConsole.Interactive();
     return(console);
 }
Пример #5
0
 /// <summary>
 /// Sets the console's color system.
 /// </summary>
 /// <param name="console">The console.</param>
 /// <param name="colors">The color system to use.</param>
 /// <returns>The same instance so that multiple calls can be chained.</returns>
 public static AnsiTestConsole Colors(this AnsiTestConsole console, ColorSystem colors)
 {
     console.SpectreTestConsole.Colors(colors);
     return(console);
 }