@@ -0,0 +1,1568 @@
+/*%0A * Copyright (C) 2009-2020 the original author(s).%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A * http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage org.fusesource.jansi;%0A%0Aimport java.io.PrintStream;%0A%0Apublic class InstallUninstallTest %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        print(System.out, %22Lorem ipsum%22);%0A        print(System.err, %22dolor sit amet%22);%0A        AnsiConsole.systemInstall();%0A        print(System.out, %22consectetur adipiscing elit%22);%0A        print(System.err, %22sed do eiusmod%22);%0A        AnsiConsole.out().setAnsiMode(AnsiMode.Strip);%0A        AnsiConsole.err().setAnsiMode(AnsiMode.Strip);%0A        print(System.out, %22tempor incididunt ut%22);%0A        print(System.err, %22labore et dolore%22);%0A        AnsiConsole.systemUninstall();%0A        print(System.out, %22magna aliqua.%22);%0A        print(System.err, %22Ut enim ad %22);%0A    %7D%0A    private static void print(PrintStream stream, String text) %7B%0A        int half = text.length() / 2;%0A        stream.print(text.substring(0, half));%0A        stream.println(Ansi.ansi().fg(Ansi.Color.GREEN).a(text.substring(half)).reset());%0A    %7D%0A%7D%0A

Add a (manuel) test