getChar method

Char getChar()

Retrieves and removes the next character from the input queue.

The queue is populated by keypress or equivalent events, typically filtering out control keys.

Returns the oldest Char in the queue. If the queue is empty, returns Char.empty.

Implementation

Char getChar() {
  if (_charQueue.isEmpty) return Char.empty;
  return _charQueue.removeFirst();
}