diff options
author | Mike Crute <mike@crute.us> | 2023-08-04 12:01:02 -0700 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2023-08-04 12:01:02 -0700 |
commit | 746e5d91e7c23fe702040cfb5b10b60d7537dbfa (patch) | |
tree | 50536b476b98eedc761402035041eafcfdd2901e | |
parent | c25f33774f4ee735853c249d1c573667706e55e4 (diff) | |
download | websocket_proxy-746e5d91e7c23fe702040cfb5b10b60d7537dbfa.tar.bz2 websocket_proxy-746e5d91e7c23fe702040cfb5b10b60d7537dbfa.tar.xz websocket_proxy-746e5d91e7c23fe702040cfb5b10b60d7537dbfa.zip |
Client clears screen not corrupts session
-rw-r--r-- | cmd/client/client.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/client/client.go b/cmd/client/client.go index f25e151..1115673 100644 --- a/cmd/client/client.go +++ b/cmd/client/client.go | |||
@@ -224,7 +224,7 @@ func clientMain(cfg app.Config, host, port, username string) { | |||
224 | defer ws.Close() | 224 | defer ws.Close() |
225 | 225 | ||
226 | // Clear the terminal screen | 226 | // Clear the terminal screen |
227 | fmt.Printf("\033c") | 227 | fmt.Fprintf(os.Stderr, "\033c") |
228 | 228 | ||
229 | errc := make(chan error) | 229 | errc := make(chan error) |
230 | 230 | ||