Package org.twdata.maven.trap.colorizer

Examples of org.twdata.maven.trap.colorizer.VT100Writer


public class TestVT100Writer extends TestCase
{
    public void testRedFg()
    {
        ByteArrayOutputStream bout = new ByteArrayOutputStream();
        new VT100Writer(new PrintStream(bout)).fg(Color.RED);
        assertEquals(ESC + "31m", new String(bout.toByteArray()));
    }
View Full Code Here


    }

    public void testBold()
    {
        ByteArrayOutputStream bout = new ByteArrayOutputStream();
        new VT100Writer(new PrintStream(bout)).mod(CharacterModifier.BOLD);
        assertEquals(ESC + "1m", new String(bout.toByteArray()));
    }
View Full Code Here

    }

    public void testRedFgBold()
    {
        ByteArrayOutputStream bout = new ByteArrayOutputStream();
        new VT100Writer(new PrintStream(bout)).fg(Color.RED, CharacterModifier.BOLD);
        assertEquals(ESC + "1;31m", new String(bout.toByteArray()));
    }
View Full Code Here

TOP

Related Classes of org.twdata.maven.trap.colorizer.VT100Writer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.