XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFESystem

【Rust】XFE系统,基于Rust和汇编

公开
关注 0 Fork 0 Star 0
UTF-8
namespace XFESystem.Console;

/// <summary>One screen cell. A wide glyph owns its following continuation cell.</summary>
public readonly record struct TerminalCell(string Text, TerminalStyle Style, int DisplayWidth = 1)
{
    public bool IsContinuation => DisplayWidth == 0;

    public static TerminalCell Blank(TerminalStyle style) => new(" ", style);
}