comparison runtime/doc/channel.txt @ 29274:d314efe6447a

Update runtime files Commit: https://github.com/vim/vim/commit/a57b553b432855667c9f26edfad95ccfdd24a6b7 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jun 24 11:48:03 2022 +0100 Update runtime files
author Bram Moolenaar <Bram@vim.org>
date Fri, 24 Jun 2022 13:00:09 +0200
parents 1e9e9d89f0ee
children dc4de65a7fb7
comparison
equal deleted inserted replaced
29273:e29819856cf4 29274:d314efe6447a
1 *channel.txt* For Vim version 8.2. Last change: 2022 Jun 04 1 *channel.txt* For Vim version 8.2. Last change: 2022 Jun 23
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
462 Note that when there is no callback, messages are dropped. To avoid that add 462 Note that when there is no callback, messages are dropped. To avoid that add
463 a close callback to the channel. 463 a close callback to the channel.
464 464
465 To read all normal output from a RAW channel that is available: > 465 To read all normal output from a RAW channel that is available: >
466 let output = ch_readraw(channel) 466 let output = ch_readraw(channel)
467 To read the error output: > 467 To read all error output from a RAW channel that is available:: >
468 let output = ch_readraw(channel, {"part": "err"}) 468 let output = ch_readraw(channel, {"part": "err"})
469 Note that if the channel is in NL mode, ch_readraw() will only return one line
470 for each call.
469 471
470 ch_read() and ch_readraw() use the channel timeout. When there is nothing to 472 ch_read() and ch_readraw() use the channel timeout. When there is nothing to
471 read within that time an empty string is returned. To specify a different 473 read within that time an empty string is returned. To specify a different
472 timeout in msec use the "timeout" option: 474 timeout in msec use the "timeout" option:
473 {"timeout": 123} ~ 475 {"timeout": 123} ~