nicer terminal messages for SSH

This commit is contained in:
Eugene Pankov
2020-02-16 21:26:01 +01:00
parent 851d92a140
commit 0c892225f3
6 changed files with 57 additions and 31 deletions

View File

@@ -174,6 +174,14 @@ export class BaseTerminalTabComponent extends BaseTabComponent implements OnInit
this.size = { columns, rows }
this.frontendReady.next()
this.config.enabledServices(this.decorators).forEach(decorator => {
try {
decorator.attach(this)
} catch (e) {
this.logger.warn('Decorator attach() throws', e)
}
})
setTimeout(() => {
this.session.resize(columns, rows)
}, 1000)
@@ -204,14 +212,6 @@ export class BaseTerminalTabComponent extends BaseTabComponent implements OnInit
this.configure()
this.config.enabledServices(this.decorators).forEach((decorator) => {
try {
decorator.attach(this)
} catch (e) {
this.logger.warn('Decorator attach() throws', e)
}
})
setTimeout(() => {
this.output.subscribe(() => {
this.displayActivity()