diff --git a/lib/title.js b/lib/title.js index 1ee645d..608436a 100644 --- a/lib/title.js +++ b/lib/title.js @@ -4,12 +4,14 @@ const chalk = require('chalk').default; const gradient = require('gradient-string'); -module.exports.title = function(component) { - - process.stdout.cursorTo(0, 0); - process.stdout.clearScreenDown(); - const bigDisplay = process.stdout.getWindowSize()[1] > 45 - if(bigDisplay) console.log(); +module.exports.title = function(component, cls = true) { + + if(cls) { + process.stdout.cursorTo(0, 0); + process.stdout.clearScreenDown(); + const bigDisplay = process.stdout.getWindowSize()[1] > 45 + if(bigDisplay) console.log(); + } // centerString(` // /\\ .-. .-. .-.-.;;;;;;' diff --git a/relay/index.js b/relay/index.js index 5f45b2f..b489f44 100644 --- a/relay/index.js +++ b/relay/index.js @@ -1,9 +1,9 @@ const { title } = require('../lib/title'); const net = require('net'); -const log = require('signale'); +const log = require('signale').scope('relay'); const { config } = require('./../package.json'); -// title('relay'); +title('relay', false); // let connection = null; diff --git a/relay/service.js b/relay/service.js index a0c3f21..9cbee0b 100644 --- a/relay/service.js +++ b/relay/service.js @@ -1,5 +1,5 @@ (() => { -const log = require('signale'); +const log = require('signale').scope('service'); const { execSync, spawn } = require('child_process'); const branch = 'master'; let proc;