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

final void jline::ConsoleReader::putChar ( final int  c,
final boolean  print 
) throws IOException [inline, private]

Output the specified character, both to the buffer and the output stream.

Definition at line 1079 of file ConsoleReader.java.

References drawBuffer(), mask, and printCharacter().

Referenced by readLine().

      {
            buf.insert ((char)c);

            if (print)
            {
                  // no masking...
                  if (mask == null)
                  {
                        printCharacter (c);
                  }
                  // null mask: don't print anything...
                  else if (mask.charValue () == 0);
                  // otherwise print the mask...
                  else
                  {
                        printCharacter (mask.charValue ());
                  }
                  drawBuffer ();
            }
      }


Generated by  Doxygen 1.6.0   Back to index