From 3d7f6fa06087f1661e33b559416cd8b1cc5e9932 Mon Sep 17 00:00:00 2001 From: Teemu Kallio Date: Sun, 17 Jul 2016 19:18:01 +0200 Subject: [PATCH] =?UTF-8?q?Fixing=20problems=20with=20alt=20key=20and=20sp?= =?UTF-8?q?ecial=20characters=20like=20=C3=A5,=20=C3=B6=20and=20=C3=A4.=20?= =?UTF-8?q?(#201)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/lib/components/term.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/lib/components/term.js b/app/lib/components/term.js index 37c2de2e..ea527df7 100644 --- a/app/lib/components/term.js +++ b/app/lib/components/term.js @@ -33,6 +33,9 @@ export default class Term extends Component { this.term.prefs_.set('color-palette-overrides', props.colors); this.term.prefs_.set('user-css', this.getStylesheet(props.customCSS)); this.term.prefs_.set('scrollbar-visible', false); + this.term.prefs_.set('receive-encoding', 'raw'); + this.term.prefs_.set('send-encoding', 'raw'); + this.term.prefs_.set('alt-sends-what', 'browser-key'); this.term.onTerminalReady = () => { const io = this.term.io.push(); @@ -74,7 +77,7 @@ export default class Term extends Component { write (data) { requestAnimationFrame(() => { - this.term.io.print(data); + this.term.io.writeUTF8(data); }); }