Remove hex output

This commit is contained in:
Melon 2024-01-14 21:39:51 +00:00
parent c6685100b2
commit d504678d6f
Signed by: melon
GPG Key ID: 6C9D970C50D26A25

View File

@ -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,