From d504678d6fed4444a013c4fc42abe46b0a961d58 Mon Sep 17 00:00:00 2001 From: MrMelon54 Date: Sun, 14 Jan 2024 21:39:51 +0000 Subject: [PATCH] Remove hex output --- qpty.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/qpty.go b/qpty.go index 73dfd53..4d26f4f 100644 --- a/qpty.go +++ b/qpty.go @@ -2,7 +2,6 @@ package qpty import ( "context" - "encoding/hex" "github.com/creack/pty" "github.com/fsouza/go-dockerclient" "io" @@ -66,14 +65,6 @@ func (q *Qpty) Run(shell string) error { _, _ = io.Copy(q.tty, q.or) }() - go func() { - r, w := io.Pipe() - go func() { - _, _ = io.Copy(hex.NewEncoder(w), q.pty) - }() - _, _ = io.Copy(os.Stdout, r) - }() - return q.dock.StartExec(execInst.ID, docker.StartExecOptions{ InputStream: q.ir, OutputStream: q.ow,