Skip to content

Commit fb20a8a

Browse files
authored
Merge pull request #1574 from vim-jp/hh-update-terminal
Update terminal.{txt,jax}
2 parents 5bd6d2a + f0aa244 commit fb20a8a

File tree

2 files changed

+140
-38
lines changed

2 files changed

+140
-38
lines changed

doc/terminal.jax

Lines changed: 70 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*terminal.txt* For Vim バージョン 9.1. Last change: 2024 Mar 17
1+
*terminal.txt* For Vim バージョン 9.1. Last change: 2024 Jun 13
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -533,8 +533,10 @@ term_dumpdiff({filename}, {filename} [, {options}])
533533
|method| としても使用できる: >
534534
GetFilename()->term_dumpdiff(otherfile)
535535
<
536-
*term_dumpload()*
537-
term_dumpload({filename} [, {options}])
536+
戻り値の型: |Number|
537+
538+
539+
term_dumpload({filename} [, {options}]) *term_dumpload()*
538540
{filename} の内容を表示する新しいウィンドウを開く。このファイ
539541
ルは |term_dumpwrite()| で作られたものでなければならない。
540542
失敗したときはバッファ番号もしくは 0 を返す。
@@ -545,8 +547,10 @@ term_dumpload({filename} [, {options}])
545547
|method| としても使用できる: >
546548
GetFilename()->term_dumpload()
547549
<
548-
*term_dumpwrite()*
549-
term_dumpwrite({buf}, {filename} [, {options}])
550+
戻り値の型: |Number|
551+
552+
553+
term_dumpwrite({buf}, {filename} [, {options}]) *term_dumpwrite()*
550554
ファイル {filename} に、{buf} の端末画面の内容をダンプする。こ
551555
れは |term_dumpload()| および |term_dumpdiff()| で使われる
552556
フォーマットを使用する。
@@ -560,13 +564,18 @@ term_dumpwrite({buf}, {filename} [, {options}])
560564

561565
|method| としても使用できる、ベースはファイル名に使用される: >
562566
GetFilename()->term_dumpwrite(bufnr)
567+
<
568+
戻り値の型: |Number|
569+
563570

564571
term_getaltscreen({buf}) *term_getaltscreen()*
565572
{buf} の端末が代替スクリーンを使用している場合 1 を返す。
566573
{buf} の扱いについては |term_getsize()| と同じ。
567574

568575
|method| としても使用できる: >
569576
GetBufnr()->term_getaltscreen()
577+
<
578+
戻り値の型: |Number|
570579

571580

572581
term_getansicolors({buf}) *term_getansicolors()*
@@ -582,8 +591,10 @@ term_getansicolors({buf}) *term_getansicolors()*
582591

583592
|method| としても使用できる: >
584593
GetBufnr()->term_getansicolors()
594+
<
595+
戻り値の型: list<string> または list<any>
585596

586-
< {GUI が有効もしくは |+termguicolors| 機能付きでコンパイルされ
597+
{GUI が有効もしくは |+termguicolors| 機能付きでコンパイルされ
587598
たときのみ有効}
588599

589600
term_getattr({attr}, {what}) *term_getattr()*
@@ -598,6 +609,8 @@ term_getattr({attr}, {what}) *term_getattr()*
598609

599610
|method| としても使用できる: >
600611
GetAttr()->term_getattr()
612+
<
613+
戻り値の型: |Number|
601614

602615

603616
term_getcursor({buf}) *term_getcursor()*
@@ -620,14 +633,20 @@ term_getcursor({buf}) *term_getcursor()*
620633

621634
|method| としても使用できる: >
622635
GetBufnr()->term_getcursor()
636+
<
637+
戻り値の型: list<any>
638+
623639

624640
term_getjob({buf}) *term_getjob()*
625641
端末ウィンドウ {buf} に関連付いたジョブを取得する。
626642
{buf} の扱いについては |term_getsize()| と同じ。
627-
ジョブが存在しないときには |v:null| を返す。
643+
ジョブがない場合は |v:null| を返す。Vim9 script では、ジョブが
644+
ない場合 null_job を返す。
628645

629646
|method| としても使用できる: >
630647
GetBufnr()->term_getjob()
648+
<
649+
戻り値の型: |job|
631650

632651

633652
term_getline({buf}, {row}) *term_getline()*
@@ -641,6 +660,8 @@ term_getline({buf}, {row}) *term_getline()*
641660

642661
|method| としても使用できる: >
643662
GetBufnr()->term_getline(row)
663+
<
664+
戻り値の型: |String|
644665

645666

646667
term_getscrolled({buf}) *term_getscrolled()*
@@ -656,6 +677,8 @@ term_getscrolled({buf}) *term_getscrolled()*
656677

657678
|method| としても使用できる: >
658679
GetBufnr()->term_getscrolled()
680+
<
681+
戻り値の型: |Number|
659682

660683

661684
term_getsize({buf}) *term_getsize()*
@@ -669,6 +692,8 @@ term_getsize({buf}) *term_getsize()*
669692

670693
|method| としても使用できる: >
671694
GetBufnr()->term_getsize()
695+
<
696+
戻り値の型: list<number> または list<any>
672697

673698

674699
term_getstatus({buf}) *term_getstatus()*
@@ -685,6 +710,8 @@ term_getstatus({buf}) *term_getstatus()*
685710

686711
|method| としても使用できる: >
687712
GetBufnr()->term_getstatus()
713+
<
714+
戻り値の型: |String|
688715

689716

690717
term_gettitle({buf}) *term_gettitle()*
@@ -697,6 +724,8 @@ term_gettitle({buf}) *term_gettitle()*
697724

698725
|method| としても使用できる: >
699726
GetBufnr()->term_gettitle()
727+
<
728+
戻り値の型: |String|
700729

701730

702731
term_gettty({buf} [, {input}]) *term_gettty()*
@@ -709,11 +738,15 @@ term_gettty({buf} [, {input}]) *term_gettty()*
709738

710739
|method| としても使用できる: >
711740
GetBufnr()->term_gettty()
741+
<
742+
戻り値の型: |String|
712743

713744

714745
term_list() *term_list()*
715746
すべての端末ウィンドウのバッファのバッファ番号のリストを返す。
716747

748+
戻り値の型: list<number> または list<any>
749+
717750

718751
term_scrape({buf}, {row}) *term_scrape()*
719752
端末スクリーン {buf}{row} にある内容を取得する。
@@ -733,6 +766,8 @@ term_scrape({buf}, {row}) *term_scrape()*
733766

734767
|method| としても使用できる: >
735768
GetBufnr()->term_scrape(row)
769+
<
770+
戻り値の型: list<dict<any>> または list<any>
736771

737772

738773
term_sendkeys({buf}, {keys}) *term_sendkeys()*
@@ -744,6 +779,8 @@ term_sendkeys({buf}, {keys}) *term_sendkeys()*
744779

745780
|method| としても使用できる: >
746781
GetBufnr()->term_sendkeys(keys)
782+
<
783+
戻り値の型: |Number|
747784

748785

749786
term_setansicolors({buf}, {colors}) *term_setansicolors()*
@@ -778,8 +815,10 @@ term_setansicolors({buf}, {colors}) *term_setansicolors()*
778815

779816
|method| としても使用できる: >
780817
GetBufnr()->term_sendkeys(keys)
818+
<
819+
戻り値の型: |Number|
781820

782-
< {GUI が有効もしくは |+termguicolors| 機能付きでコンパイルされ
821+
{GUI が有効もしくは |+termguicolors| 機能付きでコンパイルされ
783822
たときのみ有効}
784823

785824

@@ -794,6 +833,8 @@ term_setapi({buf}, {expr}) *term_setapi()*
794833

795834
|method| としても使用できる、ベースは {buf} に使用される: >
796835
GetBufnr()->term_setapi({expr})
836+
<
837+
戻り値の型: |Number|
797838

798839

799840
term_setkill({buf}, {how}) *term_setkill()*
@@ -810,6 +851,8 @@ term_setkill({buf}, {how}) *term_setkill()*
810851

811852
|method| としても使用できる: >
812853
GetBufnr()->term_setkill(how)
854+
<
855+
戻り値の型: |Number|
813856

814857

815858
term_setrestore({buf}, {command}) *term_setrestore()*
@@ -824,6 +867,8 @@ term_setrestore({buf}, {command}) *term_setrestore()*
824867

825868
|method| としても使用できる: >
826869
GetBufnr()->term_setrestore(command)
870+
<
871+
戻り値の型: |Number|
827872

828873

829874
term_setsize({buf}, {rows}, {cols}) *term_setsize()* *E955*
@@ -837,6 +882,8 @@ term_setsize({buf}, {rows}, {cols}) *term_setsize()* *E955*
837882

838883
|method| としても使用できる: >
839884
GetBufnr()->term_setsize(rows, cols)
885+
<
886+
戻り値の型: |Number|
840887

841888

842889
term_start({cmd} [, {options}]) *term_start()*
@@ -912,6 +959,8 @@ term_start({cmd} [, {options}]) *term_start()*
912959

913960
|method| としても使用できる: >
914961
GetCommand()->term_start()
962+
<
963+
戻り値の型: |Number|
915964

916965

917966
term_wait({buf} [, {time}]) *term_wait()*
@@ -922,6 +971,8 @@ term_wait({buf} [, {time}]) *term_wait()*
922971

923972
|method| としても使用できる: >
924973
GetBufnr()->term_wait()
974+
<
975+
戻り値の型: |Number|
925976

926977
==============================================================================
927978
3. 端末通信 *terminal-communication*
@@ -1319,8 +1370,8 @@ gdb ウィンドウにフォーカスを移しコマンドを入力します。
13191370

13201371
*:Run* *:Arguments*
13211372
ソースコードを表示するウィンドウで、これらのコマンドをgdbの制御に使用できます:
1322-
`:Run` [args] [args] または以前の引数でプログラムを実行する
1323-
`:Arguments` {args} 次の `:Run` のために引数を設定する
1373+
:Run [args] [args] または以前の引数でプログラムを実行する
1374+
:Arguments {args} 次の `:Run` のために引数を設定する
13241375
*:Break* カーソル位置にブレークポイントを設定する
13251376
:Break {position}
13261377
指定位置にブレークポイントを設定する
@@ -1365,25 +1416,25 @@ gdbは各ブレークポイントに番号を与えます。Vim内では、赤
13651416

13661417
変数を検査する ~
13671418
*termdebug-variables* *:Evaluate*
1368-
`:Evaluate` カーソルの下の式を評価する
1369-
`K` 上に同じ (無効にする場合は |termdebug_map_K| を参照)
1370-
`:Evaluate` {expr} {expr} を評価する
1371-
`:'<,'>Evaluate` ビジュアル選択したテキストを評価する
1419+
:Evaluate カーソルの下の式を評価する
1420+
K 上に同じ (無効にする場合は |termdebug_map_K| を参照)
1421+
:Evaluate {expr} {expr} を評価する
1422+
:'<,'>Evaluate ビジュアル選択したテキストを評価する
13721423

13731424
これは gdb ウィンドウで "print" コマンドを使ったのに相当します。
13741425
`:Evaluate``:Ev` に短縮できます。
13751426

13761427

13771428
スタックフレームの移動 ~
13781429
*termdebug-frames* *:Frame* *:Up* *:Down*
1379-
`:Frame` [frame] フレームを選択する。[frame] は、フレーム番号、アドレ
1430+
:Frame [frame] フレームを選択する。[frame] は、フレーム番号、アドレ
13801431
ス、または関数名 (デフォルト: カレントフレーム)
1381-
`:Up` [count] [count] フレーム上へ (デフォルト: 1; カレントを呼び出
1432+
:Up [count] [count] フレーム上へ (デフォルト: 1; カレントを呼び出
13821433
したフレーム)
1383-
`+` 同上 (無効にするには |termdebug_map_plus| を参照)
1384-
`:Down` [count] [count] フレーム下へ (デフォルト: 1; カレントによって
1434+
+ 同上 (無効にするには |termdebug_map_plus| を参照)
1435+
:Down [count] [count] フレーム下へ (デフォルト: 1; カレントによって
13851436
呼び出されるフレーム)
1386-
`-` 同上 (無効にするには |termdebug_map_minus| を参照)
1437+
- 同上 (無効にするには |termdebug_map_minus| を参照)
13871438

13881439

13891440
その他のコマンド ~

0 commit comments

Comments
 (0)