Auto-sync: 2026-04-20 09:58
This commit is contained in:
30
wiki/concepts/Terminal-Emulation.md
Normal file
30
wiki/concepts/Terminal-Emulation.md
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
title: "Terminal Emulation"
|
||||
type: concept
|
||||
tags: [terminal, emulation, vt100, xterm]
|
||||
---
|
||||
|
||||
## 定义
|
||||
终端仿真(Terminal Emulation)是一种软件技术,通过模拟传统物理终端的行为,使现代应用程序能够与基于文本的接口进行交互。
|
||||
|
||||
## 核心要素
|
||||
- VT100/xterm 标准支持
|
||||
- ANSI 转义序列解析
|
||||
- 光标控制
|
||||
- 字符编码处理(UTF-8/Unicode)
|
||||
|
||||
## 技术原理
|
||||
1. 接收来自应用程序的字符输入
|
||||
2. 解析 ANSI 转义序列
|
||||
3. 更新终端状态
|
||||
4. 渲染文本到显示设备
|
||||
|
||||
## 应用场景
|
||||
- SSH 客户端
|
||||
- 终端仿真器应用
|
||||
- 远程服务器管理
|
||||
|
||||
## 相关技术
|
||||
- [[VT100]]:终端标准规范
|
||||
- [[ANSI Escape Sequence]]:终端控制指令
|
||||
- [[SwiftTerm]]:Swift 实现库
|
||||
Reference in New Issue
Block a user