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

int [] jline::ConsoleReader::readBinding (  )  throws IOException [inline, private]

Reads the console input and returns an array of the form [raw, key binding].

Definition at line 635 of file ConsoleReader.java.

References debug(), keybindings, and readVirtualKey().

Referenced by readLine().

      {
            int c = readVirtualKey ();
            if (c == -1)
                  return null;

            // extract the appropriate key binding
            short code = keybindings[c];

            if (debugger != null)
                  debug ("    translated: " + (int)c + ": " + code);

            return new int[] { c, code };
      }


Generated by  Doxygen 1.6.0   Back to index