Skip to content

Commit

Permalink
Merge pull request #1905 from h-east/update-term
Browse files Browse the repository at this point in the history
Update term.{txt,jax}
  • Loading branch information
h-east authored Jan 5, 2025
2 parents 582c987 + 4cb3e11 commit 130b312
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
12 changes: 6 additions & 6 deletions doc/term.jax
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*term.txt* For Vim バージョン 9.1. Last change: 2024 Oct 05
*term.txt* For Vim バージョン 9.1. Last change: 2024 Dec 31


VIMリファレンスマニュアル by Bram Moolenaar
Expand Down Expand Up @@ -684,11 +684,11 @@ https://github.com/termstandard/colors を参照してください。
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
端末によっては、セミコロンをすべてコロンに置き換えた同じシーケンスを受け付ける
ものもあります (この方が実際には互換性が高いですが、あまり広くサポートされてい
ません): >
let &t_8f = "\<Esc>[38:2:%lu:%lu:%lum"
let &t_8b = "\<Esc>[48:2:%lu:%lu:%lum"
一部の端末では、セミコロンをコロンに置き換え、数字 2 の後にコロンを追加した同
様のシーケンスが受け入れられます (これは ISO 8613-6 標準に準拠していますが、あ
まり広くサポートされていません): >
let &t_8f = "\<Esc>[38:2::%lu:%lu:%lum"
let &t_8b = "\<Esc>[48:2::%lu:%lu:%lum"
これらのオプションは printf 用の文字列を含んでおり、|printf()| (実際には `l`
modifier ゆえに C 言語のものと同等) により t_ オプションの値と、赤、青、緑を表
Expand Down
11 changes: 6 additions & 5 deletions en/term.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*term.txt* For Vim version 9.1. Last change: 2024 Oct 05
*term.txt* For Vim version 9.1. Last change: 2024 Dec 31


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -688,10 +688,11 @@ The default values are set like this: >
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
Some terminals accept the same sequences, but with all semicolons replaced by
colons (this is actually more compatible, but less widely supported): >
let &t_8f = "\<Esc>[38:2:%lu:%lu:%lum"
let &t_8b = "\<Esc>[48:2:%lu:%lu:%lum"
Some terminals accept similar sequences, with semicolons replaced by colons
and an extra colon after the number 2 (this is conformant to the ISO 8613-6
standard, but less widely supported): >
let &t_8f = "\<Esc>[38:2::%lu:%lu:%lum"
let &t_8b = "\<Esc>[48:2::%lu:%lu:%lum"
These options contain printf strings, with |printf()| (actually, its C
equivalent hence `l` modifier) invoked with the t_ option value and three
Expand Down

0 comments on commit 130b312

Please sign in to comment.