|
|
@@ -342,6 +342,21 @@ function App() {
|
|
|
dialog.clear()
|
|
|
},
|
|
|
},
|
|
|
+ {
|
|
|
+ title: "Suspend terminal",
|
|
|
+ value: "terminal.suspend",
|
|
|
+ keybind: "terminal_suspend",
|
|
|
+ category: "System",
|
|
|
+ onSelect: () => {
|
|
|
+ process.once("SIGCONT", () => {
|
|
|
+ renderer.resume()
|
|
|
+ })
|
|
|
+
|
|
|
+ renderer.suspend()
|
|
|
+ // pid=0 means send the signal to all processes in the process group
|
|
|
+ process.kill(0, "SIGTSTP")
|
|
|
+ },
|
|
|
+ },
|
|
|
])
|
|
|
|
|
|
createEffect(() => {
|