diff options
| author | Ryan Roden-Corrent <[email protected]> | 2025-07-14 20:13:46 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-14 20:13:46 -0400 |
| commit | 2ce694d41ff018660d136c4d8ea0f7f47e0149a4 (patch) | |
| tree | f1938e5ee8a3c2f15fae68c80c6948ed024fbd3e | |
| parent | d6eff3b3a31192b3c37e03ebff278cbc8ace2023 (diff) | |
| download | opencode-2ce694d41ff018660d136c4d8ea0f7f47e0149a4.tar.gz opencode-2ce694d41ff018660d136c4d8ea0f7f47e0149a4.zip | |
Add support for job-control suspend (ctrl+z/SIGSTP). (#944)
| -rw-r--r-- | packages/tui/internal/tui/tui.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/tui/internal/tui/tui.go b/packages/tui/internal/tui/tui.go index a2291bcf7..02df5d6e1 100644 --- a/packages/tui/internal/tui/tui.go +++ b/packages/tui/internal/tui/tui.go @@ -114,6 +114,11 @@ func (a appModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) { case tea.KeyPressMsg: keyString := msg.String() + // Handle Ctrl+Z for suspend + if keyString == "ctrl+z" { + return a, tea.Suspend + } + // 1. Handle active modal if a.modal != nil { switch keyString { |
