/*
 * Copyright (c) 2017, L. Adamson
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 * 
 * 1. Redistributions of source code must retain the above copyright notice, this
 *    list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright notice,
 *    this list of conditions and the following disclaimer in the documentation
 *    and/or other materials provided with the distribution.
 *    
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 * 
 * The views and conclusions contained in the software and documentation are those
 * of the authors and should not be interpreted as representing official policies,
 * either expressed or implied, of L. Adamson or DizzyDragon.net.
 * 
 */

package junk;

import java.io.IOException;

import vintageterminal.VintageConsole;

final public class TermTest
{
	public static void main( String[] args ) throws IOException
	{
		VintageConsole.init( "Default" );
		
		VintageConsole.setInputStreamEnabled( false );
		VintageConsole.putString( "Copyright (c) 2017, L. Adamson\n" );
		VintageConsole.putString( "All rights reserved.\n" );
		VintageConsole.putString( "\n" );
		VintageConsole.putString( "Redistribution and use in source and binary forms, with or without\n" );
		VintageConsole.putString( "modification, are permitted provided that the following conditions are met:\n" );
		VintageConsole.putString( "\n" );
		VintageConsole.putString( "1. Redistributions of source code must retain the above copyright notice, this\n" );
		VintageConsole.putString( "   list of conditions and the following disclaimer.\n" );
		VintageConsole.putString( "2. Redistributions in binary form must reproduce the above copyright notice,\n" );
		VintageConsole.putString( "   this list of conditions and the following disclaimer in the documentation\n" );
		VintageConsole.putString( "   and/or other materials provided with the distribution.\n" );
		VintageConsole.putString( "\n" );
		VintageConsole.putString( "THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\n" );
		VintageConsole.putString( "ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n" );
		VintageConsole.putString( "WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n" );
		VintageConsole.putString( "DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR\n" );
		VintageConsole.putString( "ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n" );
		VintageConsole.putString( "(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n" );
		VintageConsole.putString( "LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\n" );
		VintageConsole.putString( "ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n" );
		VintageConsole.putString( "(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n" );
		VintageConsole.putString( "SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n" );
		VintageConsole.putString( "\n" );
		for( ;; )
		{
			System.out.print( "> " );
			String s = VintageConsole.getString();
			System.out.println( "   --\"" + s + "\"" );
		}
	}
}
