Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 4.2.1 (TBD)

- Enhancements
- Enabled Ctrl-Z suspension at the prompt

## 4.2.0 (August 6, 2026)

- Enhancements
Expand Down
3 changes: 3 additions & 0 deletions cmd2/cmd2.py
Original file line number Diff line number Diff line change
Expand Up @@ -785,6 +785,7 @@ def _(event: Any) -> None: # pragma: no cover
"complete_in_thread": complete_in_thread,
"complete_while_typing": False,
"completer": Cmd2Completer(self),
"enable_suspend": True,
"history": Cmd2History(item.raw for item in self.history),
"key_bindings": key_bindings,
"lexer": Cmd2Lexer(self),
Expand Down Expand Up @@ -3613,6 +3614,7 @@ def read_input(
complete_in_thread=self.main_session.complete_in_thread,
complete_while_typing=self.main_session.complete_while_typing,
completer=completer_to_use,
enable_suspend=self.main_session.enable_suspend,
history=InMemoryHistory(history) if history is not None else InMemoryHistory(),
key_bindings=self.main_session.key_bindings,
input=self.main_session.input,
Expand All @@ -3635,6 +3637,7 @@ def read_secret(
"""
temp_session: PromptSession[str] = PromptSession(
color_depth=self.main_session.color_depth,
enable_suspend=self.main_session.enable_suspend,
input=self.main_session.input,
output=self.main_session.output,
style=self.main_session.style,
Expand Down
Loading