Skip to content

Commit 1cede70

Browse files
DOCS/man/lua: suggest keep_open for nested mp.input calls
Before 17551b2 keep_open was needed to make nested mp.input calls. Even after that change it is still better to pass it to not show the console quickly closing and reopening to the user, so recommend it. Co-authored-by: CogentRedTester <cogent.redtester@outlook.com>
1 parent 3d980d8 commit 1cede70

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

DOCS/man/lua.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -931,6 +931,13 @@ REPL.
931931
``keep_open``
932932
Whether to keep the console open on submit. Defaults to ``false``.
933933

934+
Whether to keep the console open on submit, allowing further input.
935+
Defaults to ``false``.
936+
937+
If calling ``input.get()`` or ``input.select()`` again from inside the
938+
``submit`` callback, setting this option to ``true`` allows a seamless
939+
transition without the console closing and reopening.
940+
934941
``opened``
935942
A callback invoked when the console is shown. This can be used to
936943
present a list of options with ``input.set_log()``.
@@ -1027,6 +1034,13 @@ REPL.
10271034
``keep_open``
10281035
Whether to keep the console open on submit. Defaults to ``false``.
10291036

1037+
Whether to keep the console open on submit, allowing further input.
1038+
Defaults to ``false``.
1039+
1040+
If calling ``input.get()`` or ``input.select()`` again from inside the
1041+
``submit`` callback, setting this option to ``true`` allows a seamless
1042+
transition without the console closing and reopening.
1043+
10301044
Example:
10311045

10321046
::

0 commit comments

Comments
 (0)