Skip to content

Commit

Permalink
samples: net: echo_server: Disable vt100 commands in websocket console
Browse files Browse the repository at this point in the history
Disable vt100 commands too in websocket console,  not only the coloring.
This allows to prevent printing artifacts in websocket shell backend
logging.

Signed-off-by: Robert Lubos <[email protected]>
  • Loading branch information
rlubos authored and kartben committed Jan 13, 2025
1 parent 60f5337 commit 7736314
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/net/sockets/echo_server/src/ws_console/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
ws.onopen = function() {
output("Connection opened");
connected = "true";
// No need to print Escape codes for colors
ws.send("shell colors off\n");
// No need to print escape codes
ws.send("shell colors off\nshell vt100 off\n");
};

ws.onmessage = function(e) {
Expand Down

0 comments on commit 7736314

Please sign in to comment.