blob: 19d36d4317dce0e8ea08e66b4ad9f8dd25c3317b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/*******************************************************************************
* Copyright (c) 2010, 2011 SAP AG
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Lazar Kirchev, SAP AG - initial API and implementation
*******************************************************************************/
package org.eclipse.equinox.console.common.terminal;
import org.eclipse.equinox.console.common.KEYS;
public class VT100TerminalTypeMappings extends TerminalTypeMappings {
public VT100TerminalTypeMappings() {
super();
BACKSPACE = 127;
DEL = -1;
}
@Override
public void setKeypadMappings() {
escapesToKey.put("[H", KEYS.HOME); //$NON-NLS-1$
escapesToKey.put("[4~", KEYS.END); //$NON-NLS-1$
escapesToKey.put("[5~", KEYS.PGUP); //$NON-NLS-1$
escapesToKey.put("[6~", KEYS.PGDN); //$NON-NLS-1$
escapesToKey.put("[2~", KEYS.INS); //$NON-NLS-1$
escapesToKey.put("[3~", KEYS.DEL); //$NON-NLS-1$
}
}
|