Add xterm-canvas-addon dependency for rendering
This commit is contained in:
parent
7623d95e11
commit
e9f6c15d70
2 changed files with 5 additions and 2 deletions
|
|
@ -19,6 +19,7 @@
|
|||
import React from 'react';
|
||||
import './player.css';
|
||||
import { Terminal as Term } from 'xterm';
|
||||
import { CanvasAddon } from 'xterm-addon-canvas';
|
||||
import {
|
||||
Alert,
|
||||
AlertGroup,
|
||||
|
|
@ -1203,6 +1204,7 @@ export class Player extends React.Component {
|
|||
}
|
||||
/* Open the terminal */
|
||||
this.state.term.open(this.termRef.current);
|
||||
this.state.term.loadAddon(new CanvasAddon());
|
||||
window.setInterval(this.sync, 100);
|
||||
/* Reset playback */
|
||||
this.reset();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue