registerEvents () { this.screen.on('keypress', (ch, key) => { if (key && key.name === 'tab') { this.toggleWidgetFocus ? this.widgetsRepository.get('containerLogs').focus() : this.widgetsRepository.get('containerList').focus() this.screen.on('element focus', (curr, old) => { if (old && old.border) { old.style.border.fg = 'default'
this.screen.on('resize', () => { this.boxes.header.bottom = this.screen.height - 1 this.boxes.footer.top = this.screen.height - 1 this.boxes.footer.bottom = 0 this.screen.render() })
screen.on('keypress', function (ch, key) { if (['escape', 'q', 'C-c'].includes(key.name)) { process.exit(0) } if (key.full === 'up') { model.index-- } if (key.full === 'down') { model.index++ } screen.debug(model.index) main() })
screen.on('resize', function () { widgets.forEach(w => w.emit('attach')) })