Struct ConsoleCell
- Namespace
- SharpConsoleUI.Diagnostics.Snapshots
- Assembly
- SharpConsoleUI.dll
Represents a cell in the console buffer (character + ANSI escape sequence).
public struct ConsoleCell : IEquatable<ConsoleCell>
- Implements
- Inherited Members
Constructors
ConsoleCell(char, string)
Creates a new console cell.
public ConsoleCell(char character, string ansiEscape)
Parameters
Properties
AnsiEscape
Gets or sets the ANSI escape sequence for this cell.
public string AnsiEscape { readonly get; set; }
Property Value
Character
Gets or sets the character.
public char Character { readonly get; set; }
Property Value
Methods
Equals(ConsoleCell)
Determines equality.
public bool Equals(ConsoleCell other)
Parameters
otherConsoleCell
Returns
Equals(object?)
Determines equality with object.
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
Gets hash code.
public override int GetHashCode()
Returns
ToString()
String representation.
public override string ToString()
Returns
Operators
operator ==(ConsoleCell, ConsoleCell)
Equality operator.
public static bool operator ==(ConsoleCell left, ConsoleCell right)
Parameters
leftConsoleCellrightConsoleCell
Returns
operator !=(ConsoleCell, ConsoleCell)
Inequality operator.
public static bool operator !=(ConsoleCell left, ConsoleCell right)
Parameters
leftConsoleCellrightConsoleCell