X-Git-Url: http://git.nikiroo.be/?p=jvcard.git;a=blobdiff_plain;f=src%2Fcom%2Fgooglecode%2Flanterna%2Finput%2FDefaultKeyDecodingProfile.java;fp=src%2Fcom%2Fgooglecode%2Flanterna%2Finput%2FDefaultKeyDecodingProfile.java;h=0000000000000000000000000000000000000000;hp=0c832d5b4d5e1d8730ee9294b77e80d105e7f73b;hb=f06c81000632cfb5f525ca458f719338f55f9f66;hpb=a73a906356c971b080c36368e71a15d87e8b8d31
diff --git a/src/com/googlecode/lanterna/input/DefaultKeyDecodingProfile.java b/src/com/googlecode/lanterna/input/DefaultKeyDecodingProfile.java
deleted file mode 100644
index 0c832d5..0000000
--- a/src/com/googlecode/lanterna/input/DefaultKeyDecodingProfile.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * This file is part of lanterna (http://code.google.com/p/lanterna/).
- *
- * lanterna is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program. If not, see .
- *
- * Copyright (C) 2010-2015 Martin
- */
-package com.googlecode.lanterna.input;
-
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Collection;
-import java.util.List;
-
-/**
- * This profile attempts to collect as many code combinations as possible without causing any collisions between
- * patterns. The patterns in here are tested with Linux terminal, XTerm, Gnome terminal, XFCE terminal, Cygwin and
- * Mac OS X terminal.
- *
- * @author Martin
- */
-public class DefaultKeyDecodingProfile implements KeyDecodingProfile {
-
- private static final List COMMON_PATTERNS
- = new ArrayList(Arrays.asList(
- new CharacterPattern[]{
- new BasicCharacterPattern(new KeyStroke(KeyType.Escape), ESC_CODE),
- new BasicCharacterPattern(new KeyStroke(KeyType.Tab), '\t'),
- new BasicCharacterPattern(new KeyStroke(KeyType.Enter), '\n'),
- new BasicCharacterPattern(new KeyStroke(KeyType.Enter), '\r', '\u0000'), //OS X
- new BasicCharacterPattern(new KeyStroke(KeyType.Backspace), (char) 0x7f),
- new BasicCharacterPattern(new KeyStroke(KeyType.F1), ESC_CODE, '[', '[', 'A'), //Linux
- new BasicCharacterPattern(new KeyStroke(KeyType.F2), ESC_CODE, '[', '[', 'B'), //Linux
- new BasicCharacterPattern(new KeyStroke(KeyType.F3), ESC_CODE, '[', '[', 'C'), //Linux
- new BasicCharacterPattern(new KeyStroke(KeyType.F4), ESC_CODE, '[', '[', 'D'), //Linux
- new BasicCharacterPattern(new KeyStroke(KeyType.F5), ESC_CODE, '[', '[', 'E'), //Linux
-
- new EscapeSequenceCharacterPattern(),
- new NormalCharacterPattern(),
- new AltAndCharacterPattern(),
- new CtrlAndCharacterPattern(),
- new CtrlAltAndCharacterPattern(),
- new ScreenInfoCharacterPattern(),
- new MouseCharacterPattern()
- }));
-
- @Override
- public Collection getPatterns() {
- return new ArrayList(COMMON_PATTERNS);
- }
-
-}