this.screen.key("C-c", () => { process.kill(process.pid, "SIGINT"); });
constructor() { this.screen = blessed.screen() this.grid = new contrib.grid({ rows: 10, cols: 10, screen: this.screen }) this.screen.key([`escape`, `q`, `C-c`], (ch, key) => { return process.exit(0) }) }
this.screen.key('f1', () => { this.boxes.consoleFixed.setFront() this.boxes.consoleFixed.focus() this.boxes.console.setFront() this.boxes.console.focus() this.screen.render() })
// Show boards dialog screen.key('b', () => { boardList.show() boardList.focus() })
_init() { this.screen = blessed.screen({smartCSR: true}); this.screen.key(['escape', 'q', 'C-c'], () => this.emit('exit')); }
this.screen.key('`', () => { this.boxes.dev.setFront() this.devBoxes.cmd.setFront() this.devBoxes.cmd.focus() this.screen.render() })
screen.key(['escape', 'q', 'C-c'], (ch, key) => { return process.exit(0) })
this.screen.key('f3', () => { this.boxes.miner.setFront() this.boxes.miner.focus() this.screen.render() })
this.screen.key('f5', () => { this.headerType = this.headerType < 1 ? this.headerType + 1 : 0 })
this.screen.key('C-s', () => { storage.trigger('syncState') })
this.screen.key('f4', () => { this.boxes.wallet.setFront() this.boxes.wallet.focus() this.screen.render() })
key(...args) { this.screen.key(...args) }
this.screen.key('C-v', () => { storage.trigger('logLastValidationErrors') })
screen.key(['escape', 'q', 'C-c'], function(ch, key) { return process.exit(0); });