Repository navigation
Commit 276f114
committed
Add support for job-control suspend (ctrl+z/SIGSTP).
Fixes anomalyco#584.
This allows you to drop out of opencode, run some things in your shell, and resume opencode.
Pressing ctrl+z suspends the opencode job in your shell, you can run `fg` to resume it.
This was surprisingly easy to add. It seems like bubbletea handles switching to/from raw mode on suspend/resume.
I've tested suspending/resuming opencode and my terminal remains clean.
See: https://github.com/charmbracelet/bubbletea/pull/1054/files#diff-d97478697adeda9d52cdf576d22266813b2fd5c030ec40dc2576c255347cfa2eR13-R241 parent d465f15 commit 276f114
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
117 | 122 | | |
118 | 123 | | |
119 | 124 | | |
| |||
0 commit comments