diff --git a/doc/eval.jax b/doc/eval.jax index 63c578923..4ba9a915e 100644 --- a/doc/eval.jax +++ b/doc/eval.jax @@ -1,4 +1,4 @@ -*eval.txt* For Vim バージョン 9.1. Last change: 2023 Dec 09 +*eval.txt* For Vim バージョン 9.1. Last change: 2024 Jan 14 VIMリファレンスマニュアル by Bram Moolenaar @@ -2497,8 +2497,9 @@ v:termresponse termcapのエントリ|t_RV|で端末から返されるエスケ ESC [ または CSI で始まり、次に '>' または '?' が来て、途中数 字と ';' だけから構成され 'c' で終わるエスケープシーケンスを受 け取ったとき代入される。このオプションがセットされると自動コマ - ンドイベントTermResponseが発生し、端末からの応答に反応すること - ができる。 + ンドイベント TermResponse が発生し、端末からの応答に反応するこ + とができる。また、同様に自動コマンドイベント TermResponseAll + が に "version" がセットされた状態で発生する。 |terminalprops()| を使うことで Vim が端末をどのように認識した かを知ることができる。 新しいxtermからの応答は次の形式である: @@ -2512,25 +2513,36 @@ v:termresponse termcapのエントリ|t_RV|で端末から返されるエスケ *v:termblinkresp* v:termblinkresp termcapのエントリ |t_RC| で端末から返されるエスケープシーケン ス。端末カーソルが点滅しているかを調べるために使用される。 - |term_getcursor()| で使用される。 + |term_getcursor()| で使用される。このオプションがセットされて + いるとき、 に "cursorblink" がセットされた状態で自動コ + マンドイベント TermResponseAll が発生する。 *v:termstyleresp* v:termstyleresp termcapのエントリ |t_RS| で端末から返されるエスケープシーケン ス。カーソルの形状を調べるために使用される。|term_getcursor()| - で使用される。 + で使用される。このオプションがセットされているとき、 + に "cursorshape" がセットされた状態で自動コマンドイベント + TermResponseAll が発生する。 *v:termrbgresp* v:termrbgresp termcapのエントリ |t_RS| で端末から返されるエスケープシーケン ス。端末の背景色を調べるために使用される。'background' を参照。 + このオプションがセットされているとき、 に "background" + がセットされた状態で自動コマンドイベント TermResponseAll が発 + 生する。 *v:termrfgresp* v:termrfgresp termcapのエントリ |t_RF| で端末から返されるエスケープシーケン - ス。端末の文字色を調べるために使用される。 + ス。端末の文字色を調べるために使用される。このオプションがセッ + トされているとき、 に "foreground" がセットされた状態 + で自動コマンドイベント TermResponseAll が発生する。 *v:termu7resp* v:termu7resp termcapのエントリ |t_u7| で端末から返されるエスケープシーケン ス。曖昧な幅の文字に対して端末が何をするか調べるのに使われる。 - 'ambiwidth' を参照。 + 'ambiwidth' を参照。このオプションがセットされているとき、 + に "ambiguouswidth" がセットされた状態で自動コマンド + イベント TermResponseAll が発生する。 *v:testing* *testing-variable* v:testing `test_garbagecollect_now()` を使う前に設定する必要がある。 diff --git a/en/eval.txt b/en/eval.txt index d52f7fe16..9c12fb850 100644 --- a/en/eval.txt +++ b/en/eval.txt @@ -1,4 +1,4 @@ -*eval.txt* For Vim version 9.1. Last change: 2023 Dec 09 +*eval.txt* For Vim version 9.1. Last change: 2024 Jan 14 VIM REFERENCE MANUAL by Bram Moolenaar @@ -2568,8 +2568,9 @@ v:termresponse The escape sequence returned by the terminal for the |t_RV| 'c', with only digits and ';' in between. When this option is set, the TermResponse autocommand event is fired, so that you can react to the response from the - terminal. You can use |terminalprops()| to see what Vim - figured out about the terminal. + terminal. The TermResponseAll event is also fired, with + set to "version". You can use |terminalprops()| to see + what Vim figured out about the terminal. The response from a new xterm is: "[> Pp ; Pv ; Pc c". Pp is the terminal type: 0 for vt100 and 1 for vt220. Pv is the patch level (since this was introduced in patch 95, it's @@ -2581,27 +2582,37 @@ v:termresponse The escape sequence returned by the terminal for the |t_RV| *v:termblinkresp* v:termblinkresp The escape sequence returned by the terminal for the |t_RC| termcap entry. This is used to find out whether the terminal - cursor is blinking. This is used by |term_getcursor()|. + cursor is blinking. This is used by |term_getcursor()|. When + this option is set, the TermResponseAll autocommand event is + fired, with set to "cursorblink". *v:termstyleresp* v:termstyleresp The escape sequence returned by the terminal for the |t_RS| termcap entry. This is used to find out what the shape of the - cursor is. This is used by |term_getcursor()|. + cursor is. This is used by |term_getcursor()|. When this + option is set, the TermResponseAll autocommand event is fired, + with set to "cursorshape". *v:termrbgresp* v:termrbgresp The escape sequence returned by the terminal for the |t_RB| termcap entry. This is used to find out what the terminal - background color is, see 'background'. + background color is; see 'background'. When this option is + set, the TermResponseAll autocommand event is fired, with + set to "background". *v:termrfgresp* v:termrfgresp The escape sequence returned by the terminal for the |t_RF| termcap entry. This is used to find out what the terminal - foreground color is. + foreground color is. When this option is set, the + TermResponseAll autocommand event is fired, with set + to "foreground". *v:termu7resp* v:termu7resp The escape sequence returned by the terminal for the |t_u7| termcap entry. This is used to find out what the terminal - does with ambiguous width characters, see 'ambiwidth'. + does with ambiguous width characters, see 'ambiwidth'. When + this option is set, the TermResponseAll autocommand event is + fired, with set to "ambiguouswidth". *v:testing* *testing-variable* v:testing Must be set before using `test_garbagecollect_now()`.