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

final void jline::ConsoleReader::clearAhead ( final int  num  )  throws IOException [inline, private]

Clear ahead the specified number of characters without moving the cursor.

Definition at line 1139 of file ConsoleReader.java.

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

Referenced by drawBuffer(), and killLine().

      {
            if (num == 0)
                  return;

            // debug ("clearAhead: " + num);

            // print blank extra characters
            printCharacters (' ', num);

            // we need to flush here so a "clever" console
            // doesn't just ignore the redundancy of a space followed by
            // a backspace.
            flushConsole ();

            // reset the visual cursor
            back (num);

            flushConsole ();
      }


Generated by  Doxygen 1.6.0   Back to index