mirror of
https://github.com/neovim/neovim.git
synced 2024-12-31 17:13:26 -07:00
doc: on_stdout, on_stderr, onexit (#6761)
This commit is contained in:
parent
db0159be26
commit
170d8af397
@ -4881,9 +4881,9 @@ jobstart({cmd}[, {opts}]) {Nvim} *jobstart()*
|
|||||||
unless cmd[0] is some form of "cmd.exe".
|
unless cmd[0] is some form of "cmd.exe".
|
||||||
|
|
||||||
{opts} is a dictionary with these keys:
|
{opts} is a dictionary with these keys:
|
||||||
on_stdout: stdout event handler (function name or |Funcref|)
|
|on_stdout|: stdout event handler (function name or |Funcref|)
|
||||||
on_stderr: stderr event handler (function name or |Funcref|)
|
|on_stderr|: stderr event handler (function name or |Funcref|)
|
||||||
on_exit : exit event handler (function name or |Funcref|)
|
|on_exit| : exit event handler (function name or |Funcref|)
|
||||||
cwd : Working directory of the job; defaults to
|
cwd : Working directory of the job; defaults to
|
||||||
|current-directory|.
|
|current-directory|.
|
||||||
rpc : If set, |msgpack-rpc| will be used to communicate
|
rpc : If set, |msgpack-rpc| will be used to communicate
|
||||||
|
@ -75,6 +75,7 @@ Here's what is happening:
|
|||||||
- The `JobHandler()` function is a callback passed to |jobstart()| to handle
|
- The `JobHandler()` function is a callback passed to |jobstart()| to handle
|
||||||
various job events. It takes care of displaying stdout/stderr received from
|
various job events. It takes care of displaying stdout/stderr received from
|
||||||
the shells.
|
the shells.
|
||||||
|
*on_stdout* *on_stderr* *on_exit*
|
||||||
- The arguments passed to `JobHandler()` are:
|
- The arguments passed to `JobHandler()` are:
|
||||||
|
|
||||||
0: The job id
|
0: The job id
|
||||||
|
Loading…
Reference in New Issue
Block a user