renderers = new ArrayList<CursesListRenderer<Line>>();
Renderer<Line> gridNonWrapped = format.getLineRenderer();
gridNonWrapped.setWidth(Toolkit.getScreenWidth());
ViewRowRenderer viewRenderer = new ViewRowRenderer(gridNonWrapped);
renderers.add(viewRenderer);
if (gridNonWrapped instanceof FieldRenderer) {
((FieldRenderer) gridNonWrapped).setWrappingMode(Wrap.NONE);
Renderer<Line> gridWrapped = format.getLineRenderer();
gridWrapped.setWidth(Toolkit.getScreenWidth());
((FieldRenderer) gridWrapped).setWrappingMode(Wrap.LAST_COLUMN);
((FieldRenderer) gridWrapped).addHighlight(less.getExtraHighlights());
((FieldRenderer) gridNonWrapped).addHighlight(less.getExtraHighlights());
viewRenderer = new ViewRowRenderer(gridWrapped);
renderers.add(viewRenderer);
}
TextRenderer<Line> plain = new TextRenderer<Line>();
plain.setWrapping(Toolkit.getScreenWidth());