package org.hive2hive.client;

import org.fusesource.jansi.AnsiConsole;
import org.hive2hive.client.menu.TopLevelMenu;

/**
 * A console-based client to use the Hive2Hive library.
 * 
 * @author Christian
 * 
 */
public class ConsoleClient {

	public static void main(String[] args) {

		AnsiConsole.systemInstall();
		Formatter.setDefaultForeground();
		printHeader();

		LoggerInit.initLogger();

		new TopLevelMenu().open();

		printFooter();
		Formatter.reset();
		AnsiConsole.systemUninstall();

		System.exit(0);
	}

	private static void printHeader() {
		System.out
				.println("\n**********************************************************************************");
		System.out
				.println("*      .--.                                                             .--.      *");
		System.out
				.println("*      |   |                                                            |   |      *");
		System.out
				.println("*    .- `-'-.        Welcome to the Hive2Hive console client!         .- `-'-.    *");
		System.out
				.println("*    |   |   |                                                        |   |   |    *");
		System.out
				.println("*     `-' `-'                                                          `-' `-'     *");
		System.out
				.println("************************************************************************************");
		System.out.println("\nConfigure and operate on you H2H network by following the guides.\n");
	}

	private static void printFooter() {
		System.out
				.println("\n**********************************************************************************");
		System.out
				.println("*      .--.                                                             .--.      *");
		System.out
				.println("*      |   |                                                            |   |      *");
		System.out
				.println("*    .- `-'-.                       Goodbye!                          .- `-'-.    *");
		System.out
				.println("*    |   |   |                  (hive2hive.com)                       |   |   |    *");
		System.out
				.println("*     `-' `-'                                                          `-' `-'     *");
		System.out
				.println("************************************************************************************");
	}
}
@@ -292,16 +292,76 @@
 rgs) %7B%0D%0A
+%09%09new ConsoleClient().start();%0D%0A%09%7D%0D%0A%0D%0A%09public void start() %7B
 %0D%0A%09%09Ansi

Add start method to client to use it externally #71