Examples of VT100Writer


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

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

    }

    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

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

    }

    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
Copyright © 2018 www.massapi.com. 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.