X 终端模拟器-xterm
2016-03-09 15:59:44 阿炯

xterm是一个X Window System上的标准虚拟终端。用户可以在同一个显示器上开启许多xterm,每一个都为其中运行的进程提供独立的输入输出(一般来说此进程是Unix shell)。

The xterm program is a terminal emulator for the X Window System. It provides DEC VT102 and Tektronix 4014 compatible terminals for programs that can't use the window system directly.


xterm 很早就在 X Window System 中出现。它最先是Jim Gettys的学生Mark Vandevoorde在1984年夏天为VS100写的独立虚拟终端,当时X的开发刚刚开始。很快人们就发现它作为X的一部分比作为独立的程序更为有用,于是它开始针对X而开发。Gettys曾讲述过有关的故事 , “xterm内部如此恐怖的部分原因是它最初被计划开发成一个能驱动多个VS100显示器的单独进程。”("part of why xterm's internals are so horrifying is that it was originally intended that a single process be able to drive multiple VS100 displays.")

作为X参考实现的一个部分后多年,1996年左右,开发的主干转移至了XFree86(从X11R6.3版本派生出来),现在由Thomas Dickey维护。现有许多xterm变体可用,大多数的X虚拟终端都是从xterm的变体起步的。


This version implements ISO/ANSI colors using the "new" color model (i.e., background color erase). It also implements most of the control sequences for VT220, as well as selected features from other DEC terminals such as VT320, VT420 and VT520.

xterm 是 X 窗口系统的终端模拟器,为无法直接使用窗口系统的程序提供与 DEC VT102 和 Tektronix 4014 兼容的终端,实现了 ISO/ANSI 颜色和大部分 DEC VT220 终端中使用的控制序列。

此软件包提供四个命令: xterm 是传统的终端模拟器;uxterm 是 xterm 的封装程序,在本地化(特别是使用 UTF-8 的字符编码)设置方面更加智能,但是需要 x11-utils 工具包中提供的 luit 程序;koi8rxterm 和 uxterm 类似也是一个封装程序,用于使用 KOI8-R 字符集的系统;lxterm 是一个简单的封装程序,根据用户的本地化设置确定使用前面的哪个命令。

/usr/share/doc/xterm 中提供 X 终端模拟器所支持控制序列的完整列表。

xterm 程序使用 xbitmap 软件包提供的位图。

使用 koi8rxterm 的用户可能需要安装 xfonts-cyrillic 软件包。

最新版本:
xterm 官方宣布默认启用 UTF-8 模式,因为其更加安全,而且对使用 C/POSIX locale 的用户来说更加有用。

项目主页:http://invisible-island.net/xterm/xterm.html