mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
Use xterm winptyCompat addon (#2811)
See https://github.com/xtermjs/xterm.js/pull/1096
This commit is contained in:
parent
db016a4a78
commit
f40e32358d
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue