From f40e32358dec204313c77ef2361e0162268da3a3 Mon Sep 17 00:00:00 2001 From: CHaBou Date: Thu, 5 Apr 2018 23:53:21 +0200 Subject: [PATCH] Use xterm winptyCompat addon (#2811) See https://github.com/xtermjs/xterm.js/pull/1096 --- lib/components/term.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/components/term.js b/lib/components/term.js index e5077528..08204e60 100644 --- a/lib/components/term.js +++ b/lib/components/term.js @@ -3,6 +3,7 @@ import React from 'react'; import {Terminal} from 'xterm'; import * as fit from 'xterm/lib/addons/fit/fit'; import * as webLinks from 'xterm/lib/addons/webLinks/webLinks'; +import * as winptyCompat from 'xterm/lib/addons/winptyCompat/winptyCompat'; import {clipboard} from 'electron'; import * as Color from 'color'; import terms from '../terms'; @@ -10,6 +11,7 @@ import processClipboard from '../utils/paste'; Terminal.applyAddon(fit); Terminal.applyAddon(webLinks); +Terminal.applyAddon(winptyCompat); // map old hterm constants to xterm.js const CURSOR_STYLES = { @@ -82,6 +84,7 @@ export default class Term extends React.PureComponent { this.term.attachCustomKeyEventHandler(this.keyboardHandler); this.term.open(this.termRef); this.term.webLinksInit(); + this.term.winptyCompatInit(); if (props.term) { //We need to set options again after reattaching an existing term