I see. This looks very coupled to Aesh, maybe we should refactor that out to a private class? 

> Em 12/05/2014, às 02:27, Robert Balent <notifications@github.com> escreveu:
> 
> In shell/impl/src/main/java/org/jboss/forge/addon/shell/util/ShellUtil.java:
> 
> >        return new TerminalString(label, new TerminalColor(Color.RED, Color.DEFAULT)).toString();
> >     }
> > +
> > +   public static TerminalString colorizeResourceTerminal(FileResource resource)
> The colorizeResource method returns String which already contains color escape sequences. That's why there is problem with formatting to columns when some strings contains color sequences and some not. The original function Parser.formatDisplayList(List<Sring>, ...) considers color sequences as part of the string and adds spaces according to it. I've created bug report for that (AESH-234).
> 
> This new method colorizeResourceTerminal do not return String, but TerminalString, which have text and formatting stored separately. This way I can get length of original string easily which is used to calculate size of the column.
> 
> —
> Reply to this email directly or view it on GitHub.