@Test public void testWindow() throws IOException { String text = "\u001B[1mThis is bold.\u001B[22m"; assertEquals("\u001B[1mis\u001B[0m", AnsiSplitter.substring(text, 5, 7, 4)); assertEquals(13, AnsiSplitter.length(text, 4)); }
public static AnsiBufferedReader window(InputStream is, int begin, int end, int tabs) throws IOException { AnsiBufferedReader reader = new AnsiBufferedReader(is, begin, end, Integer.MAX_VALUE); reader.setTabs(tabs); return reader; }
AnsiSplitter { public static AnsiBufferedReader window(InputStream is, int begin, int end, int tabs) throws IOException { AnsiBufferedReader reader = new AnsiBufferedReader(is, begin, end, Integer.MAX_VALUE); reader.setTabs(tabs); return reader; } }
AnsiSplitter { public static AnsiBufferedReader window(InputStream is, int begin, int end, int tabs) throws IOException { AnsiBufferedReader reader = new AnsiBufferedReader(is, begin, end, Integer.MAX_VALUE); reader.setTabs(tabs); return reader; }  }
AnsiSplitter { public static AnsiBufferedReader window(InputStream is, int begin, int end, int tabs) throws IOException { AnsiBufferedReader reader = new AnsiBufferedReader(is, begin, end, Integer.MAX_VALUE); reader.setTabs(tabs); return reader; }  static List<String> splitLines(String text, int maxLength, int tabs); static String substring(String text, int begin, int end, int tabs); static int length(String text, int tabs); static String cut(String text, int maxLength, int tabs); static AnsiBufferedReader window(InputStream is, int begin, int end, int tabs); static AnsiBufferedReader splitter(InputStream is, int maxLength, int tabs); }
AnsiSplitter { public static AnsiBufferedReader window(InputStream is, int begin, int end, int tabs) throws IOException { AnsiBufferedReader reader = new AnsiBufferedReader(is, begin, end, Integer.MAX_VALUE); reader.setTabs(tabs); return reader; }  static List<String> splitLines(String text, int maxLength, int tabs); static String substring(String text, int begin, int end, int tabs); static int length(String text, int tabs); static String cut(String text, int maxLength, int tabs); static AnsiBufferedReader window(InputStream is, int begin, int end, int tabs); static AnsiBufferedReader splitter(InputStream is, int maxLength, int tabs);  }