logDev(...data) { R.forEach((line) => { this.devBoxes.console.pushLine(line) }, data) const extraLines = this.devBoxes.console.getScreenLines().length - this.screen.height + 2 if (extraLines > 0) { for (let i = 0; i < extraLines; i++) { this.devBoxes.console.shiftLine(0) } } this.screen.render() }
logMiner(...data) { R.forEach((line) => { this.boxes.miner.pushLine(line) }, data) const extraLines = this.boxes.miner.getScreenLines().length - this.screen.height + 2 if (extraLines > 0) { for (let i = 0; i < extraLines; i++) { this.boxes.miner.shiftLine(0) } } this.screen.render() }
logWallet(...data) { R.forEach((line) => { this.boxes.wallet.pushLine(line) }, data) const extraLines = this.boxes.wallet.getScreenLines().length - this.screen.height + 2 if (extraLines > 0) { for (let i = 0; i < extraLines; i++) { this.boxes.wallet.shiftLine(0) } } this.screen.render() }
logConsole(...data) { R.forEach((line) => { this.boxes.console.pushLine(line) }, data) const extraLines = this.boxes.console.getScreenLines().length - this.screen.height + 2 if (extraLines > 0) { for (let i = 0; i < extraLines; i++) { this.boxes.console.shiftLine(0) } } this.screen.render() }