Skip to content

Update eval.{txt,jax} #1427

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 19 additions & 7 deletions doc/eval.jax
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -2497,8 +2497,9 @@ v:termresponse termcapのエントリ|t_RV|で端末から返されるエスケ
ESC [ または CSI で始まり、次に '>' または '?' が来て、途中数
字と ';' だけから構成され 'c' で終わるエスケープシーケンスを受
け取ったとき代入される。このオプションがセットされると自動コマ
ンドイベントTermResponseが発生し、端末からの応答に反応すること
ができる。
ンドイベント TermResponse が発生し、端末からの応答に反応するこ
とができる。また、同様に自動コマンドイベント TermResponseAll
が <amatch> に "version" がセットされた状態で発生する。
|terminalprops()| を使うことで Vim が端末をどのように認識した
かを知ることができる。
新しいxtermからの応答は次の形式である:
Expand All @@ -2512,25 +2513,36 @@ v:termresponse termcapのエントリ|t_RV|で端末から返されるエスケ
*v:termblinkresp*
v:termblinkresp termcapのエントリ |t_RC| で端末から返されるエスケープシーケン
ス。端末カーソルが点滅しているかを調べるために使用される。
|term_getcursor()| で使用される。
|term_getcursor()| で使用される。このオプションがセットされて
いるとき、<amatch> に "cursorblink" がセットされた状態で自動コ
マンドイベント TermResponseAll が発生する。

*v:termstyleresp*
v:termstyleresp termcapのエントリ |t_RS| で端末から返されるエスケープシーケン
ス。カーソルの形状を調べるために使用される。|term_getcursor()|
で使用される。
で使用される。このオプションがセットされているとき、<amatch>
に "cursorshape" がセットされた状態で自動コマンドイベント
TermResponseAll が発生する。

*v:termrbgresp*
v:termrbgresp termcapのエントリ |t_RS| で端末から返されるエスケープシーケン
ス。端末の背景色を調べるために使用される。'background' を参照。
このオプションがセットされているとき、<amatch> に "background"
がセットされた状態で自動コマンドイベント TermResponseAll が発
生する。

*v:termrfgresp*
v:termrfgresp termcapのエントリ |t_RF| で端末から返されるエスケープシーケン
ス。端末の文字色を調べるために使用される。
ス。端末の文字色を調べるために使用される。このオプションがセッ
トされているとき、<amatch> に "foreground" がセットされた状態
で自動コマンドイベント TermResponseAll が発生する。

*v:termu7resp*
v:termu7resp termcapのエントリ |t_u7| で端末から返されるエスケープシーケン
ス。曖昧な幅の文字に対して端末が何をするか調べるのに使われる。
'ambiwidth' を参照。
'ambiwidth' を参照。このオプションがセットされているとき、
<amatch> に "ambiguouswidth" がセットされた状態で自動コマンド
イベント TermResponseAll が発生する。

*v:testing* *testing-variable*
v:testing `test_garbagecollect_now()` を使う前に設定する必要がある。
Expand Down
27 changes: 19 additions & 8 deletions en/eval.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
<amatch> set to "version". You can use |terminalprops()| to see
what Vim figured out about the terminal.
The response from a new xterm is: "<Esc>[> 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
Expand All @@ -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 <amatch> 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 <amatch> 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
<amatch> 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 <amatch> 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 <amatch> set to "ambiguouswidth".

*v:testing* *testing-variable*
v:testing Must be set before using `test_garbagecollect_now()`.
Expand Down