relay back to normal

stable
Marcus 2020-11-11 22:06:45 -05:00
parent 07a4367a99
commit cafdb55183
3 changed files with 11 additions and 9 deletions

View File

@ -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(`
// /\\ .-. .-. .-.-.;;;;;;'

View File

@ -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;

View File

@ -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;