code: public static String formatDisplayList(String[] displayList, int termHeight, int termWidth) {
          return formatDisplayList(Arrays.asList(displayList), termHeight, termWidth);
      }
docs: Format completions so that they look similar to GNU Readline
  
  @param displayList to format
  @param termHeight max height
  @param termWidth max width
  @return formatted string to be outputted