diff --git a/packages/terminal/package.json b/packages/terminal/package.json index 011b029d1ed8e..9999473232c2e 100644 --- a/packages/terminal/package.json +++ b/packages/terminal/package.json @@ -8,7 +8,7 @@ "@theia/filesystem": "^0.6.0", "@theia/process": "^0.6.0", "@theia/workspace": "^0.6.0", - "xterm": "3.9.2" + "xterm": "3.13.0" }, "publishConfig": { "access": "public" diff --git a/packages/terminal/src/browser/terminal-widget-impl.ts b/packages/terminal/src/browser/terminal-widget-impl.ts index a20b3891cf598..f6f8108745bfe 100644 --- a/packages/terminal/src/browser/terminal-widget-impl.ts +++ b/packages/terminal/src/browser/terminal-widget-impl.ts @@ -288,18 +288,23 @@ export class TerminalWidgetImpl extends TerminalWidget implements StatefulWidget } } protected onFitRequest(msg: Message): void { + super.onFitRequest(msg); MessageLoop.sendMessage(this, Widget.ResizeMessage.UnknownSize); } protected onActivateRequest(msg: Message): void { + super.onActivateRequest(msg); this.term.focus(); } protected onAfterShow(msg: Message): void { + super.onAfterShow(msg); this.update(); } protected onAfterAttach(msg: Message): void { + super.onAfterAttach(msg); this.update(); } protected onResize(msg: Widget.ResizeMessage): void { + super.onResize(msg); this.needsResize = true; this.update(); } diff --git a/yarn.lock b/yarn.lock index a647fe6de67ad..4b63377235776 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10441,10 +10441,10 @@ xtend@~2.1.1: dependencies: object-keys "~0.4.0" -xterm@3.9.2: - version "3.9.2" - resolved "https://registry.yarnpkg.com/xterm/-/xterm-3.9.2.tgz#e94bfbb84217b19bc1c16ed43d303b8245c9313d" - integrity sha512-fpQJQFTosY97EK4eB7UOrlFAwwqv1rSqlXgttEVD0S1v4MlevsUkRwrM/ew5X73jQXc+vdglRtccIhcXg5wtGg== +xterm@3.13.0: + version "3.13.0" + resolved "https://registry.yarnpkg.com/xterm/-/xterm-3.13.0.tgz#d0e06c3cf4c1f079aa83f646948457db3b04220b" + integrity sha512-FZVmvkkbkky3zldJ2NNOZ9h8jirtbGTlF4sIKMDrejR4wPsVZ3o4F++DQVkdeZqjAwtNOMoR17PMSOTZ+h070g== y18n@^3.2.1: version "3.2.1"