diff options
author | Mike Crute <mike@crute.us> | 2023-08-03 13:38:45 -0700 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2023-08-03 13:38:45 -0700 |
commit | 08c9439879329c653c2fabd7c8c9bf7f4c145d66 (patch) | |
tree | 9c485c57b485c92cec2e32befa5a4a39c7d0b78d | |
parent | 42ca26235a2303e75d549db5fc1a735583e09c73 (diff) | |
download | websocket_proxy-08c9439879329c653c2fabd7c8c9bf7f4c145d66.tar.bz2 websocket_proxy-08c9439879329c653c2fabd7c8c9bf7f4c145d66.tar.xz websocket_proxy-08c9439879329c653c2fabd7c8c9bf7f4c145d66.zip |
client: clear screen after connect
-rw-r--r-- | cmd/client/client.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/client/client.go b/cmd/client/client.go index a404c65..da4015e 100644 --- a/cmd/client/client.go +++ b/cmd/client/client.go | |||
@@ -223,6 +223,9 @@ func clientMain(cfg app.Config, host, port, username string) { | |||
223 | } | 223 | } |
224 | defer ws.Close() | 224 | defer ws.Close() |
225 | 225 | ||
226 | // Clear the terminal screen | ||
227 | fmt.Printf("\033c") | ||
228 | |||
226 | errc := make(chan error) | 229 | errc := make(chan error) |
227 | 230 | ||
228 | go proxy.CopyWithErrors(os.Stdout, ws, errc) | 231 | go proxy.CopyWithErrors(os.Stdout, ws, errc) |