made onionr ascii image default, added quotes to startup
This commit is contained in:
		
							parent
							
								
									59a1ad1235
								
							
						
					
					
						commit
						d149f351d2
					
				
					 5 changed files with 34 additions and 3 deletions
				
			
		|  | @ -35,6 +35,8 @@ from .. import version | |||
| from .getapihost import get_api_host_until_available | ||||
| from utils.bettersleep import better_sleep | ||||
| from netcontroller.torcontrol.onionservicecreator import create_onion_service | ||||
| from .quotes import QUOTE | ||||
| from utils.boxprint import bordered | ||||
| """ | ||||
|     This program is free software: you can redistribute it and/or modify | ||||
|     it under the terms of the GNU General Public License as published by | ||||
|  | @ -97,7 +99,12 @@ def daemon(): | |||
|     logger.raw('', terminal=True) | ||||
|     # print nice header thing :) | ||||
|     if config.get('general.display_header', True): | ||||
|         logoheader.header() | ||||
|         logoheader.header("") | ||||
|         if QUOTE[1]: | ||||
|             logger.info("\u001b[33m\033[F" + bordered(QUOTE[0] + '\n' + QUOTE[1]), terminal=True) | ||||
|         else: | ||||
|             logger.info("\u001b[33m\033[F" + bordered(QUOTE[0]), terminal=True) | ||||
| 
 | ||||
|     version.version(verbosity=5, function=logger.info) | ||||
|     logger.debug('Python version %s' % platform.python_version()) | ||||
| 
 | ||||
|  |  | |||
							
								
								
									
										23
									
								
								src/onionrcommands/daemonlaunch/quotes.py
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								src/onionrcommands/daemonlaunch/quotes.py
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,23 @@ | |||
| from random import shuffle | ||||
| QUOTES = [ | ||||
|     ("We’re all living in each other’s paranoia", | ||||
|     "Elliot Alderson"), | ||||
|     ("Privacy - like eating and breathing - is one of life's basic requirements", | ||||
|     "Katherine Neville"), | ||||
|     ("Hack the Planet", | ||||
|     ""), | ||||
|     ("Live long and prosper", | ||||
|     "Spock"), | ||||
|     ("A revolution without dancing is a revolution not worth having", | ||||
|     "V for Vendetta"), | ||||
|     ("There can be no justice so long as laws are absolute. Even life itself is an exercise in exceptions", | ||||
|     "Picard"), | ||||
|     ("Openness and participation are antidotes to surveillance and control", | ||||
|     "Howard Rheingol"), | ||||
|     ("Like a black hole, NSA pulls in every signal that comes near, but no electron is ever allowed to escape", | ||||
|     "James Bamford"), | ||||
|     ("Freedom of the press is guaranteed only to those who own one", | ||||
|     "A. J. Liebling") | ||||
| ] | ||||
| shuffle(QUOTES) | ||||
| QUOTE = QUOTES[0] | ||||
|  | @ -11,5 +11,5 @@ def header(message = logger.colors.fg.pink + logger.colors.bold + 'Onionr' + log | |||
|             # only to stdout, not file or log or anything | ||||
|             sys.stderr.write(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').replace('B', logger.colors.bold)) | ||||
| 
 | ||||
|             if not message is None: | ||||
|             if message: | ||||
|                 logger.info(logger.colors.fg.lightgreen + '-> ' + str(message) + logger.colors.reset + logger.colors.fg.lightgreen + ' <-\n', terminal=True) | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue