Files
nexus/wiki/concepts/VT100.md
2026-04-20 09:58:08 +08:00

34 lines
887 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "VT100"
type: concept
tags: [terminal, standard, ansi]
---
## 定义
VT100 是 DECDigital Equipment Corporation公司于 1978 年发布的终端标准,是现代终端仿真器实现的事实标准。
## 核心特性
- ANSI escape sequence 支持
- 屏幕光标控制
- 属性设置(加粗、下划线、闪烁等)
- 屏幕清除和行删除
- 键盘功能键映射
## 标准版本
- VT100基础版本
- VT220在 VT100 基础上增加功能键和更多控制序列
- xterm终端仿真器扩展增加 256 色、鼠标支持等
## ANSI 转义序列示例
- `\x1b[31m` — 红色文本
- `\x1b[0m` — 重置属性
- `\x1b[2J` — 清除屏幕
- `\x1b[H` — 光标归位
## 相关技术
- [[Terminal Emulation]]:终端仿真
- [[ANSI Escape Sequence]]ANSI 转义序列
- [[SwiftTerm]]Swift 实现库
## 参考文档
- https://vt100.net/docs/