Something went wrong. Try again.
.NET bindings for Terminus
Something went wrong. Try again.
Terminus.NET Cell.cs
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263namespace Terminus;
/// <summary>/// Cell style./// </summary>public enum Style : int{ /// <summary> /// Normal text. /// </summary> Normal = 0,
/// <summary> /// Bold text. /// </summary> Bold = 1,
/// <summary> /// Italic text. /// </summary> Italic = 2,
/// <summary> /// Bold and italic text. /// </summary> BoldItalic = 3,}
/// <summary>/// A cell on the terminal screen./// </summary>[StructLayout(LayoutKind.Sequential)]public struct Cell{ uint Character; Color Foreground; Color Background; Style Style;
/// <param name="character"> /// The Unicode scalar for the character. /// </param> /// /// <param name="foreground"> /// The foreground colour. /// </param> /// /// <param name="background"> /// The background colour. /// </param> /// /// <param name="style"> /// Cell style. /// </param> public Cell(uint character, Color foreground, Color background, Style style) { Character = character; Foreground = foreground; Background = background; Style = style; }}