default to string transport
This commit is contained in:
+2
-2
@@ -154,8 +154,8 @@ function runRealTerminal(): void {
|
||||
* To run it with UTF8 binary transport, swap comment on
|
||||
* the lines below. (Must also be switched in server.js)
|
||||
*/
|
||||
//term.loadAddon(new AttachAddon(socket));
|
||||
term.loadAddon(new AttachAddon(socket, {inputUtf8: true}));
|
||||
term.loadAddon(new AttachAddon(socket));
|
||||
//term.loadAddon(new AttachAddon(socket, {inputUtf8: true}));
|
||||
|
||||
term._initialized = true;
|
||||
}
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ var pty = require('node-pty');
|
||||
* Whether to use UTF8 binary transport.
|
||||
* (Must also be switched in client.ts)
|
||||
*/
|
||||
const USE_BINARY_UTF8 = true;
|
||||
const USE_BINARY_UTF8 = false;
|
||||
|
||||
|
||||
function startServer() {
|
||||
|
||||
Reference in New Issue
Block a user