2019-12-09 17:25:54 +01:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace Swan {
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// A console terminal helper to create nicer output and receive input from the user
|
|
|
|
|
/// This class is thread-safe :).
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static partial class Terminal {
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Terminal global settings.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static class Settings {
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the default output color.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>
|
|
|
|
|
/// The default color.
|
|
|
|
|
/// </value>
|
|
|
|
|
public static ConsoleColor DefaultColor { get; set; } = Console.ForegroundColor;
|
|
|
|
|
|
2019-12-10 20:01:19 +01:00
|
|
|
|
/*/// <summary>
|
2019-12-09 17:25:54 +01:00
|
|
|
|
/// Gets the color of the border.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>
|
|
|
|
|
/// The color of the border.
|
|
|
|
|
/// </value>
|
|
|
|
|
public static ConsoleColor BorderColor { get; } = ConsoleColor.DarkGreen;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the user input prefix.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>
|
|
|
|
|
/// The user input prefix.
|
|
|
|
|
/// </value>
|
|
|
|
|
public static String UserInputPrefix { get; set; } = "USR";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the user option text.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>
|
|
|
|
|
/// The user option text.
|
|
|
|
|
/// </value>
|
2019-12-10 20:01:19 +01:00
|
|
|
|
public static String UserOptionText { get; set; } = " Option: ";*/
|
2019-12-09 17:25:54 +01:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|