From 9e9595b4ecd117b38266f0813e09ce682cbe15dd Mon Sep 17 00:00:00 2001 From: Arinerron Date: Mon, 4 Jun 2018 23:17:17 -0700 Subject: [PATCH] Fix header colors --- onionr/communicator.py | 2 +- onionr/static-data/header.txt | 48 +++++++++++++++++------------------ 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/onionr/communicator.py b/onionr/communicator.py index e73a452c..15081606 100755 --- a/onionr/communicator.py +++ b/onionr/communicator.py @@ -762,7 +762,7 @@ class OnionrCommunicate: if os.path.exists('static-data/header.txt'): with open('static-data/header.txt', 'rb') as file: # only to stdout, not file or log or anything - print(file.read().decode().replace('#', logger.colors.fg.pink).replace('$', logger.colors.reset + logger.colors.bold).replace('\n', logger.colors.reset + '\n')) + print(file.read().decode().replace('P', logger.colors.fg.pink).replace('W', logger.colors.reset + logger.colors.bold).replace('G', logger.colors.fg.green).replace('\n', logger.colors.reset + '\n')) logger.info(logger.colors.fg.lightgreen + '-> ' + str(message) + logger.colors.reset + logger.colors.fg.lightgreen + ' <-\n') shouldRun = False diff --git a/onionr/static-data/header.txt b/onionr/static-data/header.txt index 2136cddf..045c8aa1 100644 --- a/onionr/static-data/header.txt +++ b/onionr/static-data/header.txt @@ -1,25 +1,25 @@ -# ' -# '' -# :'' ' -# '''''' -# :;''''': -# ::;''':: -# :::;;::: -# :::::::: -# :::::::::::: -# ::::::::::::::: -# ::::: ::::: -# ::::: :::::::: :::: -# ::: :::::: ::::::: :::: $:::::: :: :: :: ::::: ::: :: :::::: -# ::: :::: :::: ::::: ::: $:: :: ::: :: :: :: :: :::: :: :: :: -# ::: ::::: :::::: :::: :::: $:: :: :::::: :: :: :: :::: :: :: :: -# ::: :::: ::::::: :::: :::: $:: :: :: ::: :: :: :: :: :::: ::::: -# ::: ::::: :::::: :::: :::: $:: :: :: ::: :: :: :: :: ::: :: ::: -# :::: ::::: ::::: ::: $ :::: :: :: :: ::::: :: :: :: :: -# :::: :::::: :::::: :::: -# :::: :::::::::::: :::: -# ::::: :::::::: :::: -# ::::: :::::: -# :::::::::::::::: -# ::::::: +P G' +P G'' +P G'' ' +P G'''''' +P :G;'''''P: +P ::G;'''P:: +P :::G;;P::: +P :::::::: +P :::::::::::: +P ::::::::::::::: +P ::::: ::::: +P ::::: :::::::: :::: +P ::: :::::: ::::::: :::: W:::::: :: :: :: ::::: ::: :: :::::: +P ::: :::: :::: ::::: ::: W:: :: ::: :: :: :: :: :::: :: :: :: +P ::: ::::: :::::: :::: :::: W:: :: :::::: :: :: :: :::: :: :: :: +P ::: :::: ::::::: :::: :::: W:: :: :: ::: :: :: :: :: :::: ::::: +P ::: ::::: :::::: :::: :::: W:: :: :: ::: :: :: :: :: ::: :: ::: +P :::: ::::: ::::: ::: W :::: :: :: :: ::::: :: :: :: :: +P :::: :::::: :::::: :::: +P :::: :::::::::::: :::: +P ::::: :::::::: :::: +P ::::: :::::: +P :::::::::::::::: +P :::::::