用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/rudironsoni/Ghost --skill dotnet-terminal-gui命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Rulesync CLI tool documentation - unified AI rule file management for various AI coding tools
Publishes .NET artifacts from Azure DevOps. NuGet push, containers to ACR, pipeline artifacts.
Configures artifacts output layout. UseArtifactsOutput, ArtifactsPath, impact on CI and Docker.
基于 SOC 职业分类
正在显示 SKILL.md
| name | dotnet-terminal-gui |
| description | Builds full TUI apps. Terminal.Gui v2 -- views, layout (Pos/Dim), menus, dialogs, bindings, themes. |
| allowed-tools | ["Read","Grep","Glob","Bash","Write","Edit"] |
Terminal.Gui v2 for building full terminal user interfaces with windows, menus, dialogs, views, layout, event handling, color themes, and mouse support. Cross-platform across Windows, macOS, and Linux terminals.
Version assumptions: .NET 8.0+ baseline. Terminal.Gui 2.0.0-alpha (v2 Alpha is the active development line for new projects -- API is stable with comprehensive features; breaking changes possible before Beta but core architecture is solid). v1.x (1.19.0) is in maintenance mode with no new features.
For detailed code examples (views, menus, dialogs, events, themes, complete editor), see examples.md in this skill directory.
Cross-references: [skill:dotnet-spectre-console] for rich console output alternative, [skill:dotnet-csharp-async-patterns] for async TUI patterns, [skill:dotnet-native-aot] for AOT compilation considerations, [skill:dotnet-system-commandline] for CLI parsing, [skill:dotnet-csharp-dependency-injection] for DI in TUI apps, [skill:dotnet-accessibility] for TUI accessibility limitations and screen reader considerations.
<ItemGroup>
<PackageReference Include="Terminal.Gui" Version="2.0.0-alpha.*" />
</ItemGroup>
Terminal.Gui v2 uses an instance-based model with IApplication and IDisposable for proper resource cleanup.
using Terminal.Gui;
using IApplication app = Application.Create().Init();
var window = new Window
{
Title = "My TUI App",
Width = Dim.Fill(),
Height = Dim.Fill()
};
var label = new Label
{
Text = "Hello, Terminal.Gui!",
X = Pos.Center(),
Y = Pos.Center()
};
window.Add(label);
app.Run(window);
Terminal.Gui v2 unifies layout into a single model. Position is controlled by Pos (X, Y) and size by Dim (Width, Height), both relative to the SuperView's content area.
view.X = 5; // Absolute
view.X = Pos.Percent(25); // 25% from left
view.X = Pos.Center(); // Centered
view.X = Pos.AnchorEnd(10); // 10 from right edge
view.X = Pos.Right(otherView) + 1; // Relative to another view
view.Y = Pos.Bottom(otherView) + 1;
view.X = Pos.Align(Alignment.End); // Align groups
view.X = Pos.Func(() => CalculateX());
view.Width = 40; // Absolute
view.Width = Dim.Percent(50); // 50% of parent
view.Width = Dim.Fill(); // Fill remaining space
view.Width = Dim.Auto(); // Size based on content
view.Width = Dim.Auto(minimumContentDim: 20);
view.Width = Dim.Width(otherView); // Relative to another view
view.Width = Dim.Func(() => CalculateWidth());
| Feature | Windows Terminal | macOS Terminal.app | Linux (xterm/gnome) |
|---|---|---|---|
| TrueColor (24-bit) | Yes | Yes | Yes (most) |
| Mouse support | Yes | Yes | Yes |
| Unicode/emoji | Yes | Yes | Varies |
| Key modifiers | Full | Limited | Full |
TERM=xterm-256colorApplication.Create().Init() with IDisposable. Always wrap in a using statement.View.AutoSize. Removed in v2. Use Dim.Auto() instead.Button.Clicked. Replaced by Button.Accepting in v2.Application.Invoke() to marshal calls back to the UI thread.RequestStop() to close windows. Calling Dispose() directly corrupts terminal state.Dim.Fill(), Dim.Percent(), and Pos.Center() for responsive layouts.app.Run() in try/catch and ensure the using block disposes the application.ScrollView. Removed in v2. All views now support scrolling natively via SetContentSize().NStack.ustring. Removed in v2. Use standard System.String.StatusItem. Removed in v2. Use Shortcut objects with StatusBar.Add() instead.Terminal.Gui 2.0.0-alpha (v2) or 1.19.x (v1 maintenance)