2 * This file is part of lanterna (http://code.google.com/p/lanterna/).
4 * lanterna is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 * Copyright (C) 2010-2015 Martin
19 package com
.googlecode
.lanterna
.input
;
23 * This enum is a categorization of the various keys available on a normal computer keyboard that are usable
24 * (detectable) by a terminal environment. For ordinary numbers, letters and symbols, the enum value is <i>Character</i>
25 * but please keep in mind that newline and tab, usually represented by \n and \t, are considered their own separate
26 * values by this enum (<i>Enter</i> and <i>Tab</i>).
28 * Previously (before Lanterna 3.0), this enum was embedded inside the Key class.
34 * This value corresponds to a regular character 'typed', usually alphanumeric or a symbol. The one special case
35 * here is the enter key which could be expected to be returned as a '\n' character but is actually returned as a
36 * separate {@code KeyType} (see below). Tab, backspace and some others works this way too.
75 //"Virtual" KeyStroke types
77 * This value is only internally within Lanterna to understand where the cursor currently is, it's not expected to
78 * be returned by the API to an input read call.
82 * This type is not really a key stroke but actually a 'catch-all' for mouse related events. Please note that mouse
83 * event capturing must first be enabled and many terminals don't suppose this extension at all.
87 * This value is returned when you try to read input and the input stream has been closed.