Mercurial > vim
comparison runtime/doc/channel.txt @ 22723:5b7ea82bc18f
Update runtime files.
Commit: https://github.com/vim/vim/commit/cb80aa2d53e56d3aba3b3c439fb467f29a750c5e
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Oct 26 21:12:46 2020 +0100
Update runtime files.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 26 Oct 2020 21:15:07 +0100 |
parents | 335365fcbb60 |
children | acda780ffc3e |
comparison
equal
deleted
inserted
replaced
22722:41cc1c207f82 | 22723:5b7ea82bc18f |
---|---|
1 *channel.txt* For Vim version 8.2. Last change: 2020 Sep 03 | 1 *channel.txt* For Vim version 8.2. Last change: 2020 Oct 17 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
962 "dead" job died or was stopped after running | 962 "dead" job died or was stopped after running |
963 | 963 |
964 On Unix a non-existing command results in "dead" instead of | 964 On Unix a non-existing command results in "dead" instead of |
965 "fail", because a fork happens before the failure can be | 965 "fail", because a fork happens before the failure can be |
966 detected. | 966 detected. |
967 | |
968 If in Vim9 script a variable is declared with type "job" but | |
969 never assigned to, passing that variable to job_status() | |
970 returns "fail". | |
967 | 971 |
968 If an exit callback was set with the "exit_cb" option and the | 972 If an exit callback was set with the "exit_cb" option and the |
969 job is now detected to be "dead" the callback will be invoked. | 973 job is now detected to be "dead" the callback will be invoked. |
970 | 974 |
971 For more information see |job_info()|. | 975 For more information see |job_info()|. |
1286 " Function handling a line of text has been typed. | 1290 " Function handling a line of text has been typed. |
1287 func TextEntered(text) | 1291 func TextEntered(text) |
1288 " Send the text to a shell with Enter appended. | 1292 " Send the text to a shell with Enter appended. |
1289 call ch_sendraw(g:shell_job, a:text .. "\n") | 1293 call ch_sendraw(g:shell_job, a:text .. "\n") |
1290 endfunc | 1294 endfunc |
1291 | 1295 |
1292 " Function handling output from the shell: Added above the prompt. | 1296 " Function handling output from the shell: Added above the prompt. |
1293 func GotOutput(channel, msg) | 1297 func GotOutput(channel, msg) |
1294 call append(line("$") - 1, "- " . a:msg) | 1298 call append(line("$") - 1, "- " . a:msg) |
1295 endfunc | 1299 endfunc |
1296 | 1300 |