예제 #1
0
  /**
   * Erase the current line.
   *
   * @return false if we failed (e.g., the buffer was empty)
   */
  final boolean resetLine() throws IOException {
    if (buf.cursor == 0) {
      return false;
    }

    backspaceAll();

    return true;
  }