langtools/src/jdk.jshell/share/classes/jdk/internal/jshell/tool/ConsoleIOContext.java
changeset 43773 8d8593871575
parent 43583 d16e490ec827
child 44188 3f2047e62102
equal deleted inserted replaced
43772:4e5350b7be75 43773:8d8593871575
   308                         String currentDoc = docIt.next();
   308                         String currentDoc = docIt.next();
   309                         String[] lines = currentDoc.split("\n");
   309                         String[] lines = currentDoc.split("\n");
   310                         int firstLine = 0;
   310                         int firstLine = 0;
   311 
   311 
   312                         PRINT_PAGE: while (true) {
   312                         PRINT_PAGE: while (true) {
       
   313                             in.print(lastNote.replaceAll(".", " ") + ConsoleReader.RESET_LINE);
       
   314 
   313                             int toPrint = height - 1;
   315                             int toPrint = height - 1;
   314 
   316 
   315                             while (toPrint > 0 && firstLine < lines.length) {
   317                             while (toPrint > 0 && firstLine < lines.length) {
   316                                 in.println(lines[firstLine++]);
   318                                 in.println(lines[firstLine++]);
   317                                 toPrint--;
   319                                 toPrint--;