Skip to content

Commit 3a58361

Browse files
authored
Merge pull request #894 from tsuyoshicho/update/term-20210306
Update term.{txt.jax}
2 parents 1fe0c19 + 0cd093b commit 3a58361

File tree

2 files changed

+38
-2
lines changed

2 files changed

+38
-2
lines changed

doc/term.jax

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*term.txt* For Vim バージョン 8.2. Last change: 2020 Apr 12
1+
*term.txt* For Vim バージョン 8.2. Last change: 2021 Jan 14
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -215,6 +215,9 @@ Shift、";3" は Alt、";5" はCtrl、";9" は Meta (Alt と異なる場合)。
215215
これらのコードのもう1つの特殊な性質は、他のコードで上書きできないことです。
216216
xterm から直接得られたコードが |t_RV| それらを上書きするのを避けるためです。
217217

218+
もう1つの特殊な値は、"@;*X" で終わるtermcapエントリです。これは、"CSI X" また
219+
は "CSI 1 ; modifier X" のいずれかを使用するカーソルキー用です。したがって、
220+
"@" は修飾子が続く場合は "1" を表すか、何も表しません。
218221
*xterm-scroll-region*
219222
Sun などのプラットフォームのデフォルトの xterm 用の termcap エントリには領域の
220223
スクロール用のエントリが入っていません。/etc/termcap の xterm エントリに
@@ -367,6 +370,10 @@ Vim 独自のもの (標準的なコードはないもの):
367370
t_Ri アイコンテキストをスタックから復元 *t_Ri* *'t_Ri'*
368371
t_TE "raw" モードの終了 *t_TE* *'t_TE'*
369372
t_TI 端末を "raw" モードにする *t_TI* *'t_TI'*
373+
t_fd フォーカスイベント追跡を無効化する *t_fd* *'t_fd'*
374+
|xterm-focus-event|
375+
t_fe フォーカスイベント追跡を有効化する *t_fe* *'t_fe'*
376+
|xterm-focus-event|
370377

371378
いくつかのコードは、開始、中間および終了部分を持ちます。開始と終了はオプション
372379
termcap で定義され、中間部分はテキストです。
@@ -540,6 +547,17 @@ xterm でのウィンドウサイズ変更はリソース allowWindowOps が有
540547
トメニュー(CTRL キーを押しながらマウス右ボタン)でこの値を確認できます。
541548
allow-window-pos にチェックが入っているはずです。
542549

550+
*xterm-focus-event*
551+
xterm を含む一部の端末は、フォーカスイベント追跡機能をサポートしています。
552+
この機能が 't_fe' シーケンスによって有効になっている場合、端末がフォーカスを取
553+
得または失う度に、特別なキーシーケンスが端末から Vim に送信されます。
554+
Vim はそれらを適切に処理することでフォーカスイベント(|FocusGained|/|FocusLost|)
555+
を発生させます。フォーカスイベントの追跡は、"raw" モードを終了する時に 't_fd'
556+
シーケンスによって無効になります。
557+
この機能を無効化したいなら、以下をあなたの .vimrc に追加してください:
558+
`set t_fd=`
559+
`set t_fe=`
560+
543561
*termcap-colors*
544562
色についての Note: 't_Co' は利用できる色の数を示します。この値が 0 でなければ
545563
't_AB' と 't_AF' の値を使って色を設定します。これらのうちどれかが存在しない場

en/term.txt

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*term.txt* For Vim version 8.2. Last change: 2020 Apr 12
1+
*term.txt* For Vim version 8.2. Last change: 2021 Jan 14
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -217,6 +217,10 @@ it's different from Alt). They can be combined. Examples: >
217217
Another speciality about these codes is that they are not overwritten by
218218
another code. That is to avoid that the codes obtained from xterm directly
219219
|t_RV| overwrite them.
220+
221+
Another special value is a termcap entry ending in "@;*X". This is for cursor
222+
keys, which either use "CSI X" or "CSI 1 ; modifier X". Thus the "@"
223+
stands for either "1" if a modifier follows, or nothing.
220224
*xterm-scroll-region*
221225
The default termcap entry for xterm on Sun and other platforms does not
222226
contain the entry for scroll regions. Add ":cs=\E[%i%d;%dr:" to the xterm
@@ -369,6 +373,10 @@ Added by Vim (there are no standard codes for these):
369373
t_Ri restore icon text from stack *t_Ri* *'t_Ri'*
370374
t_TE end of "raw" mode *t_TE* *'t_TE'*
371375
t_TI put terminal into "raw" mode *t_TI* *'t_TI'*
376+
t_fd disable focus-event tracking *t_fd* *'t_fd'*
377+
|xterm-focus-event|
378+
t_fe enable focus-event tracking *t_fe* *'t_fe'*
379+
|xterm-focus-event|
372380

373381
Some codes have a start, middle and end part. The start and end are defined
374382
by the termcap option, the middle part is text.
@@ -542,6 +550,16 @@ And run "xrdb -merge .Xresources" to make it effective. You can check the
542550
value with the context menu (right mouse button while CTRL key is pressed),
543551
there should be a tick at allow-window-ops.
544552

553+
*xterm-focus-event*
554+
Some terminals including xterm support the focus event tracking feature.
555+
If this feature is enabled by the 't_fe' sequence, special key sequences are
556+
sent from the terminal to Vim every time the terminal gains or loses focus.
557+
Vim fires focus events (|FocusGained|/|FocusLost|) by handling them accordingly.
558+
Focus event tracking is disabled by a 't_fd' sequence when exiting "raw" mode.
559+
If you would like to disable this feature, add the following to your .vimrc:
560+
`set t_fd=`
561+
`set t_fe=`
562+
545563
*termcap-colors*
546564
Note about colors: The 't_Co' option tells Vim the number of colors available.
547565
When it is non-zero, the 't_AB' and 't_AF' options are used to set the color.

0 commit comments

Comments
 (0)