From 6148dd8d867743e414542869f561a169b17ae424 Mon Sep 17 00:00:00 2001 From: Marcos Lilljedahl Date: Mon, 14 Nov 2016 18:23:24 -0300 Subject: [PATCH] Ctrl-m is enter :S --- services/docker.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/docker.go b/services/docker.go index 7d5d855..ec74535 100644 --- a/services/docker.go +++ b/services/docker.go @@ -56,7 +56,7 @@ func DeleteNetwork(id string) error { } func CreateExecConnection(id string, ctx context.Context) (string, error) { - conf := types.ExecConfig{Tty: true, AttachStdin: true, AttachStderr: true, AttachStdout: true, Cmd: []string{"sh"}, DetachKeys: "ctrl-m,ctrl-o,ctrl-b,ctrl-y"} + conf := types.ExecConfig{Tty: true, AttachStdin: true, AttachStderr: true, AttachStdout: true, Cmd: []string{"sh"}, DetachKeys: "ctrl-x,ctrl-x"} resp, err := c.ContainerExecCreate(ctx, id, conf) if err != nil { return "", err @@ -66,7 +66,7 @@ func CreateExecConnection(id string, ctx context.Context) (string, error) { } func AttachExecConnection(execId string, ctx context.Context) (*types.HijackedResponse, error) { - conf := types.ExecConfig{Tty: true, AttachStdin: true, AttachStderr: true, AttachStdout: true, DetachKeys: "ctrl-m,ctrl-o,ctrl-b,ctrl-y"} + conf := types.ExecConfig{Tty: true, AttachStdin: true, AttachStderr: true, AttachStdout: true, DetachKeys: "ctrl-x,ctrl-x"} conn, err := c.ContainerExecAttach(ctx, execId, conf) if err != nil {