Mercurial > vim
comparison runtime/doc/channel.txt @ 22077:335365fcbb60 v8.2.1588
patch 8.2.1588: cannot read back the prompt of a prompt buffer
Commit: https://github.com/vim/vim/commit/077cc7aa0e0c431e97795612374fe17fe7c88803
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Sep 4 16:35:35 2020 +0200
patch 8.2.1588: cannot read back the prompt of a prompt buffer
Problem: Cannot read back the prompt of a prompt buffer.
Solution: Add prompt_getprompt(). (Ben Jackson, closes https://github.com/vim/vim/issues/6851)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 04 Sep 2020 16:45:04 +0200 |
parents | 21fb2a3ad3ca |
children | 5b7ea82bc18f |
comparison
equal
deleted
inserted
replaced
22076:1b8ace0b3487 | 22077:335365fcbb60 |
---|---|
1 *channel.txt* For Vim version 8.2. Last change: 2020 Jul 10 | 1 *channel.txt* For Vim version 8.2. Last change: 2020 Sep 03 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
606 | 606 |
607 Use |ch_log()| to write log messages. The file is flushed | 607 Use |ch_log()| to write log messages. The file is flushed |
608 after every message, on Unix you can use "tail -f" to see what | 608 after every message, on Unix you can use "tail -f" to see what |
609 is going on in real time. | 609 is going on in real time. |
610 | 610 |
611 To enable the log very early, to see what is received from a | |
612 terminal during startup, use |--cmd|: > | |
613 vim --cmd "call ch_logfile('logfile', 'w')" | |
614 < | |
611 This function is not available in the |sandbox|. | 615 This function is not available in the |sandbox|. |
612 NOTE: the channel communication is stored in the file, be | 616 NOTE: the channel communication is stored in the file, be |
613 aware that this may contain confidential and privacy sensitive | 617 aware that this may contain confidential and privacy sensitive |
614 information, e.g. a password you type in a terminal window. | 618 information, e.g. a password you type in a terminal window. |
615 | 619 |
1254 | 1258 |
1255 After setting 'buftype' to "prompt" Vim does not automatically start Insert | 1259 After setting 'buftype' to "prompt" Vim does not automatically start Insert |
1256 mode, use `:startinsert` if you want to enter Insert mode, so that the user | 1260 mode, use `:startinsert` if you want to enter Insert mode, so that the user |
1257 can start typing a line. | 1261 can start typing a line. |
1258 | 1262 |
1259 The text of the prompt can be set with the |prompt_setprompt()| function. | 1263 The text of the prompt can be set with the |prompt_setprompt()| function. If |
1264 no prompt is set with |prompt_setprompt()|, "% " is used. You can get the | |
1265 effective prompt text for a buffer, with |prompt_getprompt()|. | |
1260 | 1266 |
1261 The user can go to Normal mode and navigate through the buffer. This can be | 1267 The user can go to Normal mode and navigate through the buffer. This can be |
1262 useful to see older output or copy text. | 1268 useful to see older output or copy text. |
1263 | 1269 |
1264 The CTRL-W key can be used to start a window command, such as CTRL-W w to | 1270 The CTRL-W key can be used to start a window command, such as CTRL-W w to |