diff --git a/README.md b/README.md index e04784c..53e31b6 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,10 @@ window (xterm.js) and create a websocket with the server, which relays the data The program has been tested on Linux, WSL2, Raspberry Pi 3B (Debian), and MacOSX using Google Chrome, Firefox, and Safari. +## Known bug + +WiTTY has some display/encoding issues on macOS with Firefox, especially for zsh. Safari works fine though. + ## An Screencast featuring an older version of WiTTY Here is a screencast for sshing into Raspberry Pi running diff --git a/assets/main.css b/assets/main.css index 40a44fa..ab73e72 100644 --- a/assets/main.css +++ b/assets/main.css @@ -1,14 +1,14 @@ #terminal { display: flex; justify-content: center; - margin: 20px 0 50px; + margin: 10px 0 20px; } #terminal #terminal_view { padding: 10px 20px; border-radius: 6px; background-color: #282a36; - max-width: 860px; + max-width: 880px; } .xterm-viewport.xterm-viewport { diff --git a/assets/main.js b/assets/main.js index c3ca192..63bfc24 100644 --- a/assets/main.js +++ b/assets/main.js @@ -32,7 +32,7 @@ function createTerminal(path) { }); term.open(document.getElementById('terminal_view')); - term.resize(122, 37); + term.resize(124, 37); const weblinksAddon = new WebLinksAddon.WebLinksAddon(); term.loadAddon(weblinksAddon); @@ -45,6 +45,7 @@ function createTerminal(path) { // create the websocket and connect to the server const ws_uri = "wss://" + window.location.host + path; const socket = new WebSocket(ws_uri); + socket.binaryType = "arraybuffer"; const attachAddon = new AttachAddon.AttachAddon(socket); term.loadAddon(attachAddon); diff --git a/assets/term.html b/assets/term.html index 8b2ff33..789f4d6 100644 --- a/assets/term.html +++ b/assets/term.html @@ -28,7 +28,7 @@ -