Skip to content

Commit cc1e654

Browse files
guidocellaCogentRedTester
authored andcommitted
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 32a164c commit cc1e654

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

DOCS/man/lua.rst

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,12 @@ REPL.
929929
the text in the console.
930930

931931
``keep_open``
932-
Whether to keep the console open on submit. Defaults to ``false``.
932+
Whether to keep the console open on submit, allowing further input.
933+
Defaults to ``false``.
934+
935+
If calling ``input.get()`` or ``input.select()`` again from inside the
936+
``submit`` callback, setting this option to ``true`` allows a seamless
937+
transition without the console closing and reopening.
933938

934939
``opened``
935940
A callback invoked when the console is shown. This can be used to
@@ -1028,7 +1033,12 @@ REPL.
10281033
the 1-based index of the selected item.
10291034

10301035
``keep_open``
1031-
Whether to keep the console open on submit. Defaults to ``false``.
1036+
Whether to keep the console open on submit, allowing further input.
1037+
Defaults to ``false``.
1038+
1039+
If calling ``input.get()`` or ``input.select()`` again from inside the
1040+
``submit`` callback, setting this option to ``true`` allows a seamless
1041+
transition without the console closing and reopening.
10321042

10331043
Example:
10341044

0 commit comments

Comments
 (0)