mirror of
https://github.com/docker/compose.git
synced 2026-08-27 03:45:29 +00:00
support Ctrl+Z to run compose in background
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
7755302348
commit
88aae9c46e
1 changed files with 2 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue