Logo Search packages:      
Sourcecode: jline version File versions  Download package

final void jline::ConsoleReader::drawBuffer ( final int  clear  )  throws IOException [inline, private]

Redraw the rest of the buffer from the cursor onwards. This is necessary for inserting text into the buffer.

Parameters:
clear the number of characters to clear after the end of the buffer

Definition at line 1110 of file ConsoleReader.java.

References back(), clearAhead(), flushConsole(), and printCharacters().

      {
            // debug ("drawBuffer: " + clear);

            char[] chars = buf.buffer.substring (buf.cursor).toCharArray ();
            printCharacters (chars);

            clearAhead (clear);
            back (chars.length);
            flushConsole ();
      }


Generated by  Doxygen 1.6.0   Back to index