Add attach addon

This commit is contained in:
Daniel Imms
2019-05-31 19:58:12 -07:00
parent 1cde8a3167
commit a1a63f99ff
15 changed files with 4112 additions and 16 deletions
+2
View File
@@ -25,6 +25,7 @@ import { Terminal as TerminalType, ITerminalOptions } from 'xterm';
export interface IWindowWithTerminal extends Window {
term: TerminalType;
Terminal?: typeof TerminalType;
AttachAddon?: typeof AttachAddon;
WebLinksAddon?: typeof WebLinksAddon;
}
declare let window: IWindowWithTerminal;
@@ -75,6 +76,7 @@ const disposeRecreateButtonHandler = () => {
if (document.location.pathname === '/test') {
window.Terminal = Terminal;
window.AttachAddon = AttachAddon;
window.WebLinksAddon = WebLinksAddon;
} else {
createTerminal();
+2 -1
View File
@@ -6,7 +6,8 @@
"sourceMap": true,
"baseUrl": ".",
"paths": {
"xterm-addon-web-links": ["../addons/xterm-addon-web-links"]
"xterm-addon-web-links": ["../addons/xterm-addon-web-links"],
"xterm-addon-attach": ["../addons/xterm-addon-attach"]
}
},
"include": [