From b9d7a4e8f70bb7f9ffae7007ba77c607366ab2c8 Mon Sep 17 00:00:00 2001 From: l0ng-ai <24760907+l0ng-ai@users.noreply.github.com> Date: Tue, 7 Jul 2026 11:57:59 +0800 Subject: [PATCH] Update README and README.zh-CN to refine terminal description and features. Simplified language for clarity, emphasizing GPU rendering and performance metrics. Adjusted prompt feature descriptions for consistency and improved readability. --- README.md | 23 ++++++++++++----------- README.zh-CN.md | 22 +++++++++++----------- 2 files changed, 23 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index ce746a94..fd58afb3 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ ### tty7 -**A blazing-fast terminal in pure Rust — GPU-rendered, and built around the prompt.** +**A fast, GPU-rendered terminal in pure Rust.** GPU rendering on Zed's gpui · VT core from Alacritty @@ -26,18 +26,18 @@
-tty7 is a terminal that puts speed and the prompt first. Every frame renders on -the GPU, output drains faster than any terminal we've measured — an 11 MB `cat` -in **95 ms** — and the prompt itself does real work: inline completion, syntax -highlighting, and flag-by-flag hints for the commands you type all day. Pure -Rust, native on macOS, Windows, and Linux, zero configuration to get there. +tty7 is a GPU-rendered terminal. An 11 MB `cat` finishes in **95 ms** — about +2× faster than Alacritty, Ghostty, or Kitty on the same hardware — and the +built-in prompt gives you inline completion, syntax highlighting, and per-flag +hints for common commands. Pure Rust, native on macOS, Windows, and Linux, no +configuration needed. -- ⚡ **Fastest in its class** — an 11 MB `cat` completes in **95 ms**, versus +- ⚡ **Fast** — an 11 MB `cat` completes in **95 ms**, versus 179–239 ms for Alacritty/Ghostty/Kitty; DOOM-fire renders at **888 fps** against their 485–617. Same machine, same grid; the harness is in the repo ([benchmarks](#-benchmarks)). -- ⌨️ **A prompt that helps you type** — inline completion, syntax highlighting, - history, and in-terminal search, right where you're working. Type +- ⌨️ **Prompt with completions** — inline completion, syntax highlighting, + history, and in-terminal search. Type `git commit --`, `kubectl`, or `npm` and every flag and subcommand shows up with its description — rich signatures for ~100 common commands, generated from Fig's spec corpus. @@ -108,7 +108,8 @@ The essentials: | ⌘ T · ⌘ W · ⌘ ⇧ T | new tab · close tab · reopen closed tab | | ⌘ D · ⌘ ⇧ D | split right · split down | | ⌘ ] · ⌘ [ | next pane · previous pane | -| ⌘ ⏎ | maximize / restore the pane | +| ⌘ ⏎ · ⌘ ⇧ ⏎ | toggle fullscreen · maximize / restore the pane | +| ⌘ K | clear the screen and scrollback | | ⌘ P | command palette | | ⌘ F | search the scrollback | | ⌃ R | reverse-search shell history | @@ -139,6 +140,6 @@ Bug reports and PRs are welcome. Security issues go through -tty7 — a blazing-fast terminal in pure Rust, GPU-rendered and built around the prompt. +tty7 — a fast, GPU-rendered terminal in pure Rust. diff --git a/README.zh-CN.md b/README.zh-CN.md index 5dccd488..935f74d5 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -4,7 +4,7 @@ ### tty7 -**纯 Rust 打造的高性能终端 —— GPU 渲染,专注打磨提示符体验。** +**纯 Rust 编写的高性能 GPU 渲染终端。** GPU 渲染基于 Zed 的 gpui · VT 内核来自 Alacritty @@ -26,23 +26,22 @@
-tty7 只看重两件事:性能,以及顺手的提示符。它由 GPU 渲染,输出吞吐快过我们 -测过的所有终端 —— 11 MB 的 `cat` 仅需 **95 ms**;提示符也经过重新设计:内联 -补全、语法高亮,常用命令会逐个列出 flag 及其说明。纯 Rust 编写,macOS、 -Windows、Linux 均为原生构建,零配置即可上手。 +tty7 是一款 GPU 渲染的终端。11 MB 的 `cat` 仅需 **95 ms**,大约是 +Alacritty、Ghostty、Kitty 的两倍速度(同一台机器);内置提示符提供内联补全、 +语法高亮,以及常用命令的逐 flag 说明。纯 Rust 编写,macOS、Windows、Linux +均为原生构建,无需额外配置。 -- ⚡ **同类里最快** —— 11 MB 的 `cat` 只花 **95 ms**,Alacritty/Ghostty/Kitty +- ⚡ **快** —— 11 MB 的 `cat` 只花 **95 ms**,Alacritty/Ghostty/Kitty 要 179–239 ms;DOOM-fire 跑到 **888 fps**,它们在 485–617 之间。同一台机器、 同一网格测出来的,脚本就在仓库里(见[基准测试](#-基准测试))。 -- ⌨️ **更好用的提示符** —— 内联补全、语法高亮、历史记录、终端内搜索,就在你 - 输入命令的地方。输入 `git commit --`、`kubectl` 或 `npm`,每个 flag 和子命令 +- ⌨️ **带补全的提示符** —— 内联补全、语法高亮、历史记录、终端内搜索。输入 `git commit --`、`kubectl` 或 `npm`,每个 flag 和子命令 都会带着说明一并列出 —— 覆盖约 100 个常用命令,数据取自 Fig 的语料。 - 🧠 **懂 shell,零配置** —— 新标签页和分屏都开在当前目录,路径补全也始终跟随 你所在的位置。zsh、bash、fish、PowerShell 均自动接入,开箱即用。 - 🔌 **会话不中断** —— shell 运行在后台守护进程中,关窗口、退应用、乃至换上新 版程序,都不会中断任何一个 shell。随时断开,随时接回,无需 tmux。 -其余该有的也没落下:标签页(拖拽重排、双击重命名、数字键切换)、可拖动分隔线 +其他功能:标签页(拖拽重排、双击重命名、数字键切换)、可拖动分隔线 调节比例的分屏、命令面板、点击打开链接、桌面通知、焦点随鼠标移动。内置 8 套 主题(由浅及深),系统标题栏的明暗跟随所选主题;CJK 与输入法组合输入也一并 支持。 @@ -99,7 +98,8 @@ tty7 以设备速度读取 PTY,并在渲染路径之外成批解析输出, | ⌘ T · ⌘ W · ⌘ ⇧ T | 新建标签页 · 关闭标签页 · 恢复关闭的标签页 | | ⌘ D · ⌘ ⇧ D | 向右分屏 · 向下分屏 | | ⌘ ] · ⌘ [ | 下一个窗格 · 上一个窗格 | -| ⌘ ⏎ | 最大化 / 还原窗格 | +| ⌘ ⏎ · ⌘ ⇧ ⏎ | 切换全屏 · 最大化 / 还原窗格 | +| ⌘ K | 清屏并清空回滚缓冲区 | | ⌘ P | 命令面板 | | ⌘ F | 搜索回滚缓冲区 | | ⌃ R | 反向搜索 shell 历史 | @@ -129,6 +129,6 @@ tty7 以设备速度读取 PTY,并在渲染路径之外成批解析输出, -tty7 —— 纯 Rust 打造的高性能终端,GPU 渲染,专注打磨提示符体验。 +tty7 —— 纯 Rust 编写的高性能 GPU 渲染终端。