# 暗无天日

=============>随便,谢谢

# xterm使用简介

## 1 配置

### 1.1 让Alt键发送Escape character

XTerm*metaSendsEscape:  true
XTerm*eightBitInput:    false


### 1.2 正确显示中文

fonts can be specified from the command line, with the options -fn for bitmap font names and -fa for Xft names

XTerm*Font:       7x13


xterm*faceName: DejaVu Sans Mono:style=Book:antialias=false:size=10
xterm*faceNameDoublesize: WenQuanYi Micro Hei Mono:size=10
xterm*faceSize: 8


XTerm*locale: zh_CN.UTF-8
xterm*utf8: true
xterm*utf8Title: true


### 1.3 滚动栏

XTerm*scrollBar:  true


XTerm*rightScrollBar:  true


xterm中的滚动方式跟其他程序中用滚动条拉动滚动的方式是不同的:

1. 若在滚动条的底部区域按下,则一次滚动一页
2. 若在滚动条的顶部区域按下,则一次滚动一行
3. 若在滚动条中间区域按下,则一次滚动半页

XTerm*saveLines:  4096


### 1.4 log文件

xterm*LogFile:  "/tmp/xterm.log"


### 1.5 其他配置

#### 1.5.1 Enable bell urgency

xterm*bellIsUrgent: true


#### 1.5.2 Use color in place of bold and italics

! Forbid bold font faces; bold type is light blue.
XTerm*colorBDMode: true
XTerm*colorBD: rgb:82/a4/d3
! Do not underscore text, underlined text is white.
XTerm*colorULMode: true
XTerm*colorUL: rgb:e4/e4/e4


XTerm*scaleHeight: 1.01


#### 1.5.4 Remove black border

xterm*borderWidth: 0


## 3 xterm菜单

### 3.1 Main Options菜单

Secure Keyboard
attempts to ensure only the xterm window, and no other application, receives your keystrokes. The display changes to reverse video when it is invoked. If the display is not in reverse video, the Secure Keyboard mode is not in effect. Please read the "SECURITY" section of the xterm man page for this option's limitations.
Allow SendEvents
allows other processes to send keypress and mouse events to the xterm window. Because of the security risk, do not enable this unless you are very sure you know what you are doing.
Log to File
The log file will be named Xterm.log.hostname.yyyy.mm.dd.hh.mm.ss.XXXXXX. This file will contain all the printed output and all cursor movements. Logging may be a security risk.
The six Send * Signal menu items
are not often useful, except when your keyboard fails. HUP, TERM and KILL will close the xterm window. KILL should be avoided, as it does not allow any cleanup code to run.
will also close the xterm window – it is the same as sending a HUP signal. Most users will use the keyboard combination Ctrl+d or will type exit to close an xterm instance.

### 3.2 VT Options菜单

Select to Clipboard
Normally, selected text is stored in PRIMARY, to be pasted with Shift+Insert or by using the middle mouse button. By toggling this option to on, selected text will use CLIPBOARD, allowing you to paste the text selected in an xterm window into a GUI application using Ctrl+v. The corresponding XTerm resource is selectToClipboard.
Show Alternate Screen
When you use an a terminal application such as vim, or less, the alternate screen is opened. The main VT window, now hidden, remains in memory. You can view this main window, but not issue any commands in it, by toggling this menu option. You are able to select and copy text from this main window.
Show Tek Window and Switch to Tek Mode
The Tektronix 4014 was a graphics terminal from the 1970s used for CAD and plotting applications. The command line program graph, from plotutils, and the application gnuplot can be made to use xterm's Tek emulation; most people will prefer more modern display options for charting data. See the #Tek 4014 demonstration, below.

### 3.3 VT Fonts菜单

• When using XLFD fonts, the first seven menu items will change the font face and the font size used in the current xterm window. If you are using an Xft font, only the font size will change, the font face will not change with the different selections,
• when using XLFD font names, allows you to switch to the font name stored in the PRIMARY selection (or CLIPBOARD).

### 3.4 Tek options菜单

The first section's options allow you to change the Tek window font size.

The second set of options are used to move the focus between the Tek emulation window and the main, or VT, window and to close or hide the Tek window.

## 4 xterm其他参数说明

### 4.1 -ls选项

xterm -xrm "*background:yellow" -xrm "*foreground:red"