diff --git a/README.md b/README.md
index 808b684..0c037fb 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,9 @@
+
+> [!NOTE]
+> 本文档由 WeHub 基于上游 README 翻译整理,属于社区翻译,非官方中文文档。
+> [English](./README.en.md) · [原始项目](https://github.com/ghostty-org/ghostty) · [上游 README](https://github.com/ghostty-org/ghostty/blob/HEAD/README.md)
+> 原作者、版权与许可证归属以原始项目及本仓库 LICENSE 文件为准。
+
@@ -5,207 +11,124 @@
Ghostty
- Fast, native, feature-rich terminal emulator pushing modern features.
+ 快速、原生、功能丰富的终端模拟器,推进现代特性。
- A native GUI or embeddable library via libghostty.
+ 可通过 libghostty 提供原生 GUI 或可嵌入库。
- About
+ 关于
·
- Download
+ 下载
·
- Documentation
+ 文档
·
- Contributing
+ 贡献
·
- Developing
+ 开发
## About
-Ghostty is a terminal emulator that differentiates itself by being
-fast, feature-rich, and native. While there are many excellent terminal
-emulators available, they all force you to choose between speed,
-features, or native UIs. Ghostty provides all three.
+Ghostty 是一款终端模拟器,其差异化在于快速、功能丰富且原生。虽然市面上已有许多优秀的终端模拟器,但它们往往迫使你在速度、功能或原生 UI 之间做出取舍。Ghostty 三者兼得。
-**`libghostty`** is a cross-platform, zero-dependency C and Zig library
-for building terminal emulators or utilizing terminal functionality
-(such as style parsing). Anyone can use `libghostty` to build a terminal
-emulator or embed a terminal into their own applications. See
-[Ghostling](https://github.com/ghostty-org/ghostling) for a minimal complete project
-example or the [`examples` directory](https://github.com/ghostty-org/ghostty/tree/main/example)
-for smaller examples of using `libghostty` in C and Zig.
+**`libghostty`** 是一个跨平台、零依赖的 C 与 Zig 库,用于构建终端模拟器或利用终端功能(例如样式解析)。任何人都可以使用 `libghostty` 来构建终端模拟器,或将终端嵌入到自己的应用中。参见 [Ghostling](https://github.com/ghostty-org/ghostling) 获取一个最小完整项目示例,或查看 [`examples` 目录](https://github.com/ghostty-org/ghostty/tree/main/example) 了解在 C 与 Zig 中使用 `libghostty` 的更小示例。
-For more details, see [About Ghostty](https://ghostty.org/docs/about).
+更多详情,请参阅 [About Ghostty](https://ghostty.org/docs/about).
## Download
-See the [download page](https://ghostty.org/download) on the Ghostty website.
+请访问 Ghostty 网站上的[下载页面](https://ghostty.org/download)。
## Documentation
-See the [documentation](https://ghostty.org/docs) on the Ghostty website.
+请访问 Ghostty 网站上的[文档](https://ghostty.org/docs)。
## Contributing and Developing
-If you have any ideas, issues, etc. regarding Ghostty, or would like to
-contribute to Ghostty through pull requests, please check out our
-["Contributing to Ghostty"](CONTRIBUTING.md) document. Those who would like
-to get involved with Ghostty's development as well should also read the
-["Developing Ghostty"](HACKING.md) document for more technical details.
+如果你对 Ghostty 有任何想法、问题等,或希望通过 pull request 为 Ghostty 做贡献,请查阅我们的 ["Contributing to Ghostty"](CONTRIBUTING.md) 文档。希望参与 Ghostty 开发的人员还应阅读 ["Developing Ghostty"](HACKING.md) 文档以了解更多技术细节。
## Roadmap and Status
-Ghostty is stable and in use by millions of people and machines daily.
+Ghostty 已稳定,每天有数百万用户和机器在使用。
-The high-level ambitious plan for the project, in order:
+项目的高层次宏伟计划,按顺序如下:
| # | Step | Status |
| :-: | ------------------------------------------------------- | :----: |
-| 1 | Standards-compliant terminal emulation | ✅ |
-| 2 | Competitive performance | ✅ |
-| 3 | Rich windowing features -- multi-window, tabbing, panes | ✅ |
-| 4 | Native Platform Experiences | ✅ |
-| 5 | Cross-platform `libghostty` for Embeddable Terminals | ✅ |
-| 6 | Ghostty-only Terminal Control Sequences | ❌ |
+| 1 | 符合标准的终端模拟 | ✅ |
+| 2 | 具有竞争力的性能 | ✅ |
+| 3 | 丰富的窗口功能——多窗口、标签页、分屏 | ✅ |
+| 4 | 原生平台体验(Native Platform Experiences) | ✅ |
+| 5 | 用于可嵌入终端的跨平台 `libghostty` | ✅ |
+| 6 | Ghostty 专属终端控制序列 | ❌ |
-Additional details for each step in the big roadmap below:
+以下是大路线图中各步骤的更多细节:
#### Standards-Compliant Terminal Emulation
-Ghostty implements all of the regularly used control sequences and
-can run every mainstream terminal program without issue. For legacy sequences,
-we've done a [comprehensive xterm audit](https://github.com/ghostty-org/ghostty/issues/632)
-comparing Ghostty's behavior to xterm and building a set of conformance
-test cases.
+Ghostty 实现了所有常用控制序列,可毫无问题地运行各类主流终端程序。对于遗留序列,我们进行了[全面的 xterm 审计](https://github.com/ghostty-org/ghostty/issues/632),将 Ghostty 的行为与 xterm 对比,并建立了一套一致性测试用例。
-In addition to legacy sequences (what you'd call real "terminal" emulation),
-Ghostty also supports more modern sequences than almost any other terminal
-emulator. These features include things like the Kitty graphics protocol,
-Kitty image protocol, clipboard sequences, synchronized rendering,
-light/dark mode notifications, and many, many more.
+除遗留序列(即你所理解的真正“终端”模拟)外,Ghostty 还支持比几乎所有其他终端模拟器都更现代的序列。这些功能包括 Kitty 图形协议(Kitty graphics protocol)、Kitty 图像协议(Kitty image protocol)、剪贴板序列、同步渲染(synchronized rendering)、明暗模式通知等,以及更多特性。
-We believe Ghostty is one of the most compliant and feature-rich terminal
-emulators available.
+我们相信 Ghostty 是目前最符合标准、功能最丰富的终端模拟器之一。
-Terminal behavior is partially a de jure standard
-(i.e. [ECMA-48](https://ecma-international.org/publications-and-standards/standards/ecma-48/))
-but mostly a de facto standard as defined by popular terminal emulators
-worldwide. Ghostty takes the approach that our behavior is defined by
-(1) standards, if available, (2) xterm, if the feature exists, (3)
-other popular terminals, in that order. This defines what the Ghostty project
-views as a "standard."
+终端行为部分属于法定标准(de jure standard,即 [ECMA-48](https://ecma-international.org/publications-and-standards/standards/ecma-48/)),但更多是由全球流行终端模拟器定义的事实标准(de facto standard)。Ghostty 采取的做法是:行为按以下顺序定义——(1) 若有标准则遵循标准,(2) 若功能存在则参照 xterm,(3) 再参照其他流行终端。这定义了 Ghostty 项目所认为的“标准”。
#### Competitive Performance
-Ghostty is generally in the same performance category as the other highest
-performing terminal emulators.
+Ghostty 通常与其他性能最高的终端模拟器处于同一性能梯队。
-"The same performance category" means that Ghostty is much faster than
-traditional or "slow" terminals and is within an unnoticeable margin of the
-well-known "fast" terminals. For example, Ghostty and Alacritty are usually within
-a few percentage points of each other on various benchmarks, but are both
-something like 100x faster than Terminal.app and iTerm. However, Ghostty
-is much more feature rich than Alacritty and has a much more native app
-experience.
+“同一性能梯队”意味着 Ghostty 远快于传统或“较慢”的终端,且与知名的“快速”终端相比处于几乎察觉不到的差距内。例如,Ghostty 与 Alacritty 在各类基准测试中通常相差几个百分点,但两者都比 Terminal.app 和 iTerm 快约 100 倍。不过,Ghostty 比 Alacritty 功能更丰富,原生应用体验也更好。
-This performance is achieved through high-level architectural decisions and
-low-level optimizations. At a high-level, Ghostty has a multi-threaded
-architecture with a dedicated read thread, write thread, and render thread
-per terminal. Our renderer uses OpenGL on Linux and Metal on macOS.
-Our read thread has a heavily optimized terminal parser that leverages
-CPU-specific SIMD instructions. Etc.
+这一性能得益于高层架构决策与底层优化。在高层,Ghostty 采用多线程架构,每个终端各有专用的读线程、写线程和渲染线程。我们的渲染器在 Linux 上使用 OpenGL,在 macOS 上使用 Metal。读线程包含高度优化的终端解析器,利用 CPU 专用的 SIMD 指令。等等。
#### Rich Windowing Features
-The Mac and Linux (build with GTK) apps support multi-window, tabbing, and
-splits with additional features such as tab renaming, coloring, etc. These
-features allow for a higher degree of organization and customization than
-single-window terminals.
+Mac 与 Linux(使用 GTK 构建)应用支持多窗口、标签页和分屏,并提供标签重命名、着色等附加功能。这些功能相比单窗口终端,可实现更高程度的组织与自定义。
#### Native Platform Experiences
-Ghostty is a cross-platform terminal emulator but we don't aim for a
-least-common-denominator experience. There is a large, shared core written
-in Zig but we do a lot of platform-native things:
+Ghostty 是跨平台终端模拟器,但我们并不追求“最小公分母”体验。核心部分大量共享,使用 Zig 编写,但我们在各平台上做了许多原生实现:
-- The macOS app is a true SwiftUI-based application with all the things you
- would expect such as real windowing, menu bars, a settings GUI, etc.
-- macOS uses a true Metal renderer with CoreText for font discovery.
-- macOS supports AppleScript, Apple Shortcuts (AppIntents), etc.
-- The Linux app is built with GTK.
-- The Linux app integrates deeply with systemd if available for things
- like always-on, new windows in a single instance, cgroup isolation, etc.
+- macOS 应用是真正的基于 SwiftUI 的应用,具备你所期望的一切,例如真正的窗口管理、菜单栏、设置 GUI 等。
+- macOS 使用真正的 Metal 渲染器,并通过 CoreText 进行字体发现。
+- macOS 支持 AppleScript、Apple Shortcuts(AppIntents)等。
+- Linux 应用使用 GTK 构建。
+- 若可用,Linux 应用会与 systemd 深度集成,用于常驻、单实例新窗口、cgroup 隔离等功能。
-Our goal with Ghostty is for users of whatever platform they run Ghostty
-on to think that Ghostty was built for their platform first and maybe even
-exclusively. We want Ghostty to feel like a native app on every platform,
-for the best definition of "native" on each platform.
+我们对 Ghostty 的目标是:无论用户在哪个平台上运行 Ghostty,都应觉得 Ghostty 是优先、甚至可能是专门为该平台打造的。我们希望 Ghostty 在每个平台上都像原生应用——以各平台对“原生”的最佳定义为准。
#### Cross-platform `libghostty` for Embeddable Terminals
-In addition to being a standalone terminal emulator, Ghostty is a
-C-compatible library for embedding a fast, feature-rich terminal emulator
-in any 3rd party project. This library is called `libghostty`.
+除作为独立终端模拟器外,Ghostty 还是一个 C 兼容库,可在任何第三方项目中嵌入快速、功能丰富的终端模拟器。该库名为 `libghostty`。
-Due to the scope of this project, we're breaking libghostty down into
-separate libraries, starting with `libghostty-vt`. The goal of
-this project is to focus on parsing terminal sequences and maintaining
-terminal state. This is covered in more detail in this
-[blog post](https://mitchellh.com/writing/libghostty-is-coming).
+鉴于项目范围,我们将 libghostty 拆分为多个独立库,首先从 `libghostty-vt` 开始。该项目的目标是专注于解析终端序列并维护终端状态。更多细节见这篇[博客文章](https://mitchellh.com/writing/libghostty-is-coming).
-`libghostty-vt` is already available and usable today for Zig and C and
-is compatible for macOS, Linux, Windows, and WebAssembly. The functionality
-is extremely stable (since its been proven in Ghostty GUI for a long time),
-but the API signatures are still in flux.
+`libghostty-vt` 现已可用于 Zig 与 C,并兼容 macOS、Linux、Windows 与 WebAssembly。功能极其稳定(因其在 Ghostty GUI 中已长期使用得到验证),但 API 签名仍在变动中。
-`libghostty` is already heavily in use. See [`examples`](https://github.com/ghostty-org/ghostty/tree/main/example)
-for small examples of using `libghostty` in C and Zig or the
-[Ghostling](https://github.com/ghostty-org/ghostling) project for a
-complete example. See [awesome-libghostty](https://github.com/Uzaaft/awesome-libghostty)
-for a list of projects and resources related to `libghostty`.
+`libghostty` 已被大量使用。参见 [`examples`](https://github.com/ghostty-org/ghostty/tree/main/example) 了解在 C 与 Zig 中使用 `libghostty` 的小示例,或参见 [Ghostling](https://github.com/ghostty-org/ghostling) 项目获取完整示例。参见 [awesome-libghostty](https://github.com/Uzaaft/awesome-libghostty) 查看与 `libghostty` 相关的项目与资源列表。
-We haven't tagged libghostty with a version yet and we're still working
-on a better docs experience, but our [Doxygen website](https://libghostty.tip.ghostty.org/)
-is a good resource for the C API.
+我们尚未为 libghostty 打版本标签,也仍在改进文档体验,但我们的 [Doxygen 网站](https://libghostty.tip.ghostty.org/) 是了解 C API 的良好资源。
#### Ghostty-only Terminal Control Sequences
-We want and believe that terminal applications can and should be able
-to do so much more. We've worked hard to support a wide variety of modern
-sequences created by other terminal emulators towards this end, but we also
-want to fill the gaps by creating our own sequences.
+我们希望并相信,终端应用能够且应该做到更多。我们已努力支持其他终端模拟器创建的多种现代序列以实现这一目标,同时也希望通过自创序列来填补空白。
-We've been hesitant to do this up until now because we don't want to create
-more fragmentation in the terminal ecosystem by creating sequences that only
-work in Ghostty. But, we do want to balance that with the desire to push the
-terminal forward with stagnant standards and the slow pace of change in the
-terminal ecosystem.
+到目前为止,我们一直对这件事犹豫不决,因为我们不想通过创建仅在 Ghostty 中生效的序列,而在终端生态系统中造成更多碎片化。不过,我们也希望在这种顾虑与推动终端进步的愿望之间取得平衡——毕竟现有标准停滞不前,终端生态系统的变革步伐也十分缓慢。
-We haven't done any of this yet.
+我们尚未实现上述任何内容。
-## Crash Reports
+## 崩溃报告
-Ghostty has a built-in crash reporter that will generate and save crash
-reports to disk. The crash reports are saved to the `$XDG_STATE_HOME/ghostty/crash`
-directory. If `$XDG_STATE_HOME` is not set, the default is `~/.local/state`.
-**Crash reports are _not_ automatically sent anywhere off your machine.**
+Ghostty 内置崩溃报告器,会生成崩溃报告并将其保存到磁盘。崩溃报告保存在 `$XDG_STATE_HOME/ghostty/crash` 目录中。如果未设置 `$XDG_STATE_HOME`,则默认为 `~/.local/state`。**崩溃报告_不会_自动发送到您机器以外的任何位置。**
-Crash reports are only generated the next time Ghostty is started after a
-crash. If Ghostty crashes and you want to generate a crash report, you must
-restart Ghostty at least once. You should see a message in the log that a
-crash report was generated.
+崩溃报告只会在崩溃后下次启动 Ghostty 时生成。如果 Ghostty 崩溃后您想生成崩溃报告,必须至少重启 Ghostty 一次。您应该在日志中看到已生成崩溃报告的提示消息。
> [!NOTE]
>
-> Use the `ghostty +crash-report` CLI command to get a list of available crash
-> reports. A future version of Ghostty will make the contents of the crash
-> reports more easily viewable through the CLI and GUI.
+> 使用 `ghostty +crash-report` CLI 命令可获取可用崩溃报告的列表。未来版本的 Ghostty 将通过 CLI 和 GUI 让您更方便地查看崩溃报告内容。
-Crash reports end in the `.ghosttycrash` extension. The crash reports are in
-[Sentry envelope format](https://develop.sentry.dev/sdk/envelopes/). You can
-upload these to your own Sentry account to view their contents, but the format
-is also publicly documented so any other available tools can also be used.
+崩溃报告的文件扩展名为 `.ghosttycrash`。崩溃报告采用 [Sentry envelope 格式](https://develop.sentry.dev/sdk/envelopes/). 您可以将它们上传到您自己的 Sentry 账户以查看其内容,但该格式也有公开文档,因此也可使用任何其他可用工具。
The `ghostty +crash-report` CLI command can be used to list any crash reports.
A future version of Ghostty will show you the contents of the crash report
directly in the terminal.
@@ -219,8 +142,4 @@ SENTRY_DSN=https://e914ee84fd895c4fe324afa3e53dac76@o4507352570920960.ingest.us.
> [!WARNING]
>
-> The crash report can contain sensitive information. The report doesn't
-> purposely contain sensitive information, but it does contain the full
-> stack memory of each thread at the time of the crash. This information
-> is used to rebuild the stack trace but can also contain sensitive data
-> depending on when the crash occurred.
+> 崩溃报告可能包含敏感信息。报告并非刻意包含敏感信息,但其中包含崩溃时各线程的完整栈内存。这些信息用于重建堆栈跟踪,但根据崩溃发生的时机,也可能包含敏感数据。