Kaynağa Gözat

support Ctrl+Z to run compose in background

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof 2 ay önce
ebeveyn
işleme
88aae9c46e
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  1. 2 0
      cmd/formatter/shortcut.go

+ 2 - 0
cmd/formatter/shortcut.go

@@ -321,6 +321,8 @@ func (lk *LogKeyboard) HandleKeyEvents(ctx context.Context, event keyboard.KeyEv
 		lk.logLevel = NONE
 		// will notify main thread to kill and will handle gracefully
 		lk.signalChannel <- syscall.SIGINT
+	case keyboard.KeyCtrlZ:
+		_ = syscall.Kill(0, syscall.SIGSTOP)
 	case keyboard.KeyEnter:
 		newLine()
 		lk.printNavigationMenu()