Skip to content
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

Update term.{txt,jax} #1905

Merged
merged 1 commit into from
Jan 5, 2025
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
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
Loading