mirror of
https://github.com/docker/compose.git
synced 2026-02-09 01:59:22 +08:00
support Ctrl+Z to run compose in background
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
committed by
Nicolas De loof
parent
7755302348
commit
88aae9c46e
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user