code: private LinkedList<String> toDisplayLines(String line) {
          LinkedList<String> displayLines = new LinkedList<String>();
          if (line.length() <= terminal.getWidth()) {
              displayLines.add(line);
          } else {
              int total = Math.max(0, line.length() - 1) / terminal.getWidth() + 1;
              int startIndex = 0;
              for (int l = 0; l < total; l++) {
                  displayLines.add(line.substring(startIndex, Math.min(startIndex + terminal.getWidth(), line.length())));
                  startIndex += terminal.getWidth();
              }
          }
          return displayLines;
      }
docs: Creates a list of lines that represent how the line will be displayed on screen.
  
  @param line
  @return