Skip to content

Commit 6c0c3f2

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 6c0c3f2

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
@@ -1025,7 +1030,12 @@ REPL.
10251030
the 1-based index of the selected item.
10261031

10271032
``keep_open``
1028-
Whether to keep the console open on submit. Defaults to ``false``.
1033+
Whether to keep the console open on submit, allowing further input.
1034+
Defaults to ``false``.
1035+
1036+
If calling ``input.get()`` or ``input.select()`` again from inside the
1037+
``submit`` callback, setting this option to ``true`` allows a seamless
1038+
transition without the console closing and reopening.
10291039

10301040
Example:
10311041

0 commit comments

Comments
 (0)