Update README.md
This commit is contained in:
@@ -12,7 +12,7 @@ npm install --save xterm-addon-attach
|
|||||||
|
|
||||||
```ts
|
```ts
|
||||||
import { Terminal } from 'xterm';
|
import { Terminal } from 'xterm';
|
||||||
import { FitAddon } from 'xterm-addon-attach';
|
import { AttachAddon } from 'xterm-addon-attach';
|
||||||
|
|
||||||
const terminal = new Terminal();
|
const terminal = new Terminal();
|
||||||
const attachAddon = new AttachAddon(webSocket);
|
const attachAddon = new AttachAddon(webSocket);
|
||||||
|
|||||||
Reference in New Issue
Block a user