# 终端模拟器

终端模拟器是一种软件程序，它在窗口内或屏幕上再现硬件文本终端（如DEC VT100）的行为，使个人计算机能够像从前使用专用终端设备那样，显示文本并向shell或远程主机发送击键<sup>[1](https://columbia.edu/kermit/terminals.html)</sup>。自20世纪80年代末起，随着图形用户界面的普及，软件实现的文本终端模拟器逐渐取代了硬件终端<sup>[2](https://www.unicode.org/L2/L2023/23107-terminal-suppt.pdf)</sup>。

| 关键事实 | 详情 |
|---|---|
| 定义 | 执行硬件文本终端功能的软件，呈现字符网格并解释主机发来的控制码<sup>[1](https://columbia.edu/kermit/terminals.html)</sup> |
| 参照硬件 | DEC VT100，1978年8月推出，首款符合ANSI X3.64标准的终端；终端模拟软件至今仍被期望模拟它<sup>[3](https://www.columbia.edu/cu/computinghistory/vt100.html)</sup><sup> • </sup><sup>[4](https://carleton.ca/scs/vintage-computing/item/vin184/)</sup> |
| 控制语言 | ANSI转义序列，由VT100的编码标准化而来，至今仍用于Linux/Unix shell、SSH和终端模拟器<sup>[4](https://carleton.ca/scs/vintage-computing/item/vin184/)</sup> |
| 系统角色 | 终端位于一个通过内核伪终端（PTY）连接的栈中；模拟器解析来自shell的转义序列并将其渲染为像素<sup>[5](https://www.terminfo.dev/fundamentals/tty-architecture)</sup> |
| 一致性测试 | vttest程序用于衡量终端或模拟器程序精确模拟真实VT100的程度<sup>[6](https://vt100.net/shuford/terminal/dec.html)</sup> |
| 现代实例 | xterm、GNOME Terminal和Konsole随Linux桌面发行；Windows Terminal承载命令提示符、PowerShell以及通过WSL运行的bash；WezTerm是用Rust编写的GPU加速模拟器与多路复用器<sup>[7](https://www.techradar.com/news/best-linux-terminal-emulator)</sup><sup> • </sup><sup>[8](https://learn.microsoft.com/en-gb/windows/terminal/)</sup><sup> • </sup><sup>[9](https://github.com/wez/wezterm)</sup> |

## 终端模拟器做什么

文本终端是一种以固定间距字体输入和显示文本的设备，其中图形字符以字形图像的形式出现在固定且尺寸统一的单元格行列中，每个单元格一个字形<sup>[10](https://www.unicode.org/L2/L1998/98354.pdf)</sup>。模拟器在软件中再现这一模型：它维护一个屏幕缓冲区，解析程序发来的转义序列，并将其转化为显示器上的字符、颜色、光标移动和屏幕更新<sup>[5](https://www.terminfo.dev/fundamentals/tty-architecture)</sup>。

模拟器是更大栈中的一环。“终端”并非单一事物，而是由内核抽象——伪终端（PTY）——连接起来的一组组件构成的栈。shell运行在从端；终端模拟器或tmux之类的多路复用器充当PTY主端，解析来自shell的转义序列并维护屏幕缓冲区。正是这种双PTY架构让多路复用器得以位于shell与模拟器之间<sup>[5](https://www.terminfo.dev/fundamentals/tty-architecture)</sup>。

用户所感知的终端界面，很大一部分实际上是它与其他或多或少独立的程序——具体说是在其中运行的各条命令——交互的结果<sup>[11](https://www.mclibre.org/descargar/docs/revistas/linux-voice/linux-voice-04-en-201407.pdf)</sup>。

## VT100与转义序列标准

[数字设备公司](https://www.edgepedia.org/zh/digital-equipment-corporation)（DEC）的VT100于1978年8月推出，是首款符合ANSI X3.64标准的终端，并率先支持用于光标控制和屏幕格式化的[ANSI转义码](https://www.edgepedia.org/zh/ansi-escape-code)<sup>[3](https://www.columbia.edu/cu/computinghistory/vt100.html)</sup><sup> • </sup><sup>[4](https://carleton.ca/scs/vintage-computing/item/vin184/)</sup>。它也是最早使用转义序列的终端之一——转义序列是一系列字符，让控制计算机得以向设备发送命令，从而使与主机的交互更为高效<sup>[12](https://museu.fib.upc.edu/exposicio/terminal-digital-vt100)</sup>。

VT100体现了一种新的设计思路：使用通用微处理器来解释控制码，而非定制的分立逻辑<sup>[6](https://vt100.net/shuford/terminal/dec.html)</sup>。关于具体芯片，各方说法不一。哥伦比亚大学的计算史记载其由[Intel 8085](https://www.edgepedia.org/zh/intel-8085)控制<sup>[3](https://www.columbia.edu/cu/computinghistory/vt100.html)</sup>，而计算机历史Wiki和DEC自家的终端史则记载为8位[Intel 8080](https://www.edgepedia.org/zh/intel-8080)，几乎相同的后续型号VT102使用8085<sup>[13](https://gunkies.org/wiki/VT100)</sup><sup> • </sup><sup>[6](https://vt100.net/shuford/terminal/dec.html)</sup>。

其公布的规格包括：24x80或14x132字符显示（可选24x132）、完整的128码美国ASCII字符集、18键辅助键盘、带可选20 mA电流环的RS-232/V.24接口、Xon/Xoff流量控制、75至19200 bps的通信速率，以及41磅的重量<sup>[3](https://www.columbia.edu/cu/computinghistory/vt100.html)</sup>。它支持滚动区域，字符尺寸包括常规、压缩、双宽和双高双宽，支持平滑滚动，并采用屏幕上的键盘驱动设置，而非早期CRT终端所用的旋钮、DIP开关、跳线或螺丝<sup>[3](https://www.columbia.edu/cu/computinghistory/vt100.html)</sup>。

该终端在商业上大获成功，第一年销量超过6000台，成为20世纪80年代最受欢迎的终端之一<sup>[12](https://museu.fib.upc.edu/exposicio/terminal-digital-vt100)</sup>。它的流行使其成为终端和终端模拟器的标准<sup>[13](https://gunkies.org/wiki/VT100)</sup>。

实际限制塑造了日常使用。尽管串行硬件可以9600波特运行，VT100的屏幕却无法以每秒960字符的速度更新，因此流量控制至关重要；Xon/Xoff是DEC系统上最常见的方法。一些用户将终端切换到VT52模式，因为VT52处理的额外开销更小<sup>[13](https://gunkies.org/wiki/VT100)</sup>。

## 从硬件到软件

VT100的后继者是增加了本地回显的VT101，以及增加了字符插入和删除等主机驱动编辑功能的VT102——在当年300或1200 bps拨号速度下，这对EMACS之类的编辑器是重大改进<sup>[3](https://www.columbia.edu/cu/computinghistory/vt100.html)</sup>。后来的DEC系列，从VT200到VT500，增加了F键、编辑键盘、字符集切换、线条与方框绘制、通过ReGIS、Sixel和[泰克](https://www.edgepedia.org/zh/tektronix)协议实现的真实图形，以及多会话功能<sup>[3](https://www.columbia.edu/cu/computinghistory/vt100.html)</sup>。

自20世纪80年代末起，随着图形用户界面的普及，运行在个人计算机上的软件终端模拟器逐渐取代了硬件终端<sup>[2](https://www.unicode.org/L2/L2023/23107-terminal-suppt.pdf)</sup>。由于VT100部署极为广泛，它成为许多终端模拟（包括xterm）的参照，甚至今天终端模拟软件仍被期望模拟VT100；VT100也是xterm规范的基础<sup>[3](https://www.columbia.edu/cu/computinghistory/vt100.html)</sup>。一致性可以用vttest来衡量，该程序正是为此目的而维护的<sup>[6](https://vt100.net/shuford/terminal/dec.html)</sup>。

模拟的血统可以追溯到消费级硬件：一款用于雅达利ST的64K [ROM卡带](https://www.edgepedia.org/zh/rom-cartridge)ST_TERM.TOS 1.8版（Atari Corp，1985年和1986年）将那台计算机变成了DEC VT100终端<sup>[14](https://github.com/sarnau/atari-st-vt100-cartridge/)</sup>。

## 现代终端模拟器

在Linux桌面上，xterm、GNOME Terminal或Konsole之类的终端应用随发行版提供，第三方模拟器则对其加以扩展<sup>[7](https://www.techradar.com/news/best-linux-terminal-emulator)</sup>。在Windows上，Windows Terminal是一个现代宿主应用，可承载命令行shell，包括命令提示符、PowerShell以及通过[Windows Subsystem for Linux](https://www.edgepedia.org/zh/windows-subsystem-for-linux)运行的bash<sup>[8](https://learn.microsoft.com/en-gb/windows/terminal/)</sup>。

**GPU渲染**已成为常见的设计选择。WezTerm是一款用Rust编写的跨平台终端模拟器与多路复用器，使用GPU加速，在GitHub上约有29200颗星<sup>[9](https://github.com/wez/wezterm)</sup>。其他基于Rust的GPU加速项目包括par-term，它将使用wgpu的渲染前端与VT模拟及PTY管理核心分离<sup>[15](https://github.com/paulrobello/par-term/blob/main/docs/architecture/ARCHITECTURE.md)</sup>。

各项能力存在差异，对用户影响重大。2026年的一项终端模拟器比较发现，屏幕阅读器可访问性在GPU原生终端中普遍薄弱：kitty和wezterm没有屏幕阅读器集成，而Konsole（通过QAccessible）和gnome-terminal/VTE（自GTK 4.14起通过GTK4 GtkAccessibleText）是Linux上最完整的<sup>[16](https://github.com/contour-terminal/terminal-comparison/blob/master/REPORT.md)</sup>。窗口化模拟器还继承了图形环境带来的问题，如字体选择和特定码位的渲染、非等宽字体的问题、连字处理，以及鼠标与终端窗口中文本的交互<sup>[17](https://www.inf.usi.ch/lanza/PUBS/P/MacI2025a.pdf)</sup>。

2025年一项将终端视为窗口化模拟器的研究得出结论：它既未完全适应其图形环境，也未彻底摆脱更适合早期硬件形态的特性<sup>[17](https://www.inf.usi.ch/lanza/PUBS/P/MacI2025a.pdf)</sup>。

## References

1. [What's a Terminal?, Columbia University](https://columbia.edu/kermit/terminals.html)
2. [Terminal support document, Unicode Consortium (2023)](https://www.unicode.org/L2/L2023/23107-terminal-suppt.pdf)
3. [The DEC VT100 Terminal, Columbia University Computing History](https://www.columbia.edu/cu/computinghistory/vt100.html)
4. [Digital Equipment VT100, Carleton University School of Computer Science](https://carleton.ca/scs/vintage-computing/item/vin184/)
5. [TTY Architecture: PTY, Line Discipline, Shell, and Terminal, Terminfo.dev](https://www.terminfo.dev/fundamentals/tty-architecture)
6. [DEC Video Terminals: The VT100 and its Successors, vt100.net (Richard Shuford)](https://vt100.net/shuford/terminal/dec.html)
7. [Best Linux terminal emulator of 2025, TechRadar](https://www.techradar.com/news/best-linux-terminal-emulator)
8. [An overview on Windows Terminal, Microsoft Learn](https://learn.microsoft.com/en-gb/windows/terminal/)
9. [wezterm/wezterm, GitHub](https://github.com/wez/wezterm)
10. [Terminal graphics characters proposal, Unicode Consortium (1998)](https://www.unicode.org/L2/L1998/98354.pdf)
11. [Linux Voice issue 4: Terminal emulators group test](https://www.mclibre.org/descargar/docs/revistas/linux-voice/linux-voice-04-en-201407.pdf)
12. [Terminal Digital VT100, Museu FIB, Universitat Politècnica de Catalunya](https://museu.fib.upc.edu/exposicio/terminal-digital-vt100)
13. [VT100, Computer History Wiki (gunkies.org)](https://gunkies.org/wiki/VT100)
14. [Atari ST VT100 terminal emulator cartridge reverse engineering, GitHub](https://github.com/sarnau/atari-st-vt100-cartridge/)
15. [par-term architecture documentation, GitHub](https://github.com/paulrobello/par-term/blob/main/docs/architecture/ARCHITECTURE.md)
16. [Terminal emulator comparison report, contour-terminal/terminal-comparison, GitHub](https://github.com/contour-terminal/terminal-comparison/blob/master/REPORT.md)
17. [The Terminal as Windowed Terminal Emulator, Università della Svizzera italiana (2025)](https://www.inf.usi.ch/lanza/PUBS/P/MacI2025a.pdf)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 17, 2026; Sep 30, 2026; Oct 21, 2026 · Edited: Sep 30, 2026; Oct 21, 2026 · Last review: Oct 21, 2026*

Topic: 体育、游戏与休闲 › 电子游戏与数字游戏 › 游戏平台与硬件 › Emulation and preservation › Legacy computer and OS emulation

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/terminal-emulator

English original: https://www.edgepedia.org/terminal-emulator
