< prev index next >

jdk/src/jdk.jline/share/classes/jdk/internal/jline/console/KeyMap.java

Print this page


   1 /*
   2  * Copyright (c) 2002-2012, the original author or authors.
   3  *
   4  * This software is distributable under the BSD license. See the terms of the
   5  * BSD license in the documentation provided with this software.
   6  *
   7  * http://www.opensource.org/licenses/bsd-license.php
   8  */
   9 package jline.console;
  10 
  11 import java.util.HashMap;
  12 import java.util.Map;
  13 
  14 /**
  15  * The KeyMap class contains all bindings from keys to operations.
  16  *
  17  * @author <a href="mailto:gnodet@gmail.com">Guillaume Nodet</a>
  18  * @since 2.6
  19  */
  20 public class KeyMap {
  21     
  22     public static final String VI_MOVE        = "vi-move";
  23     public static final String VI_INSERT      = "vi-insert";
  24     public static final String EMACS          = "emacs";
  25     public static final String EMACS_STANDARD = "emacs-standard";
  26     public static final String EMACS_CTLX     = "emacs-ctlx";
  27     public static final String EMACS_META     = "emacs-meta";
  28 
  29     private static final int KEYMAP_LENGTH = 256;


   1 /*
   2  * Copyright (c) 2002-2012, the original author or authors.
   3  *
   4  * This software is distributable under the BSD license. See the terms of the
   5  * BSD license in the documentation provided with this software.
   6  *
   7  * http://www.opensource.org/licenses/bsd-license.php
   8  */
   9 package jdk.internal.jline.console;
  10 
  11 import java.util.HashMap;
  12 import java.util.Map;
  13 
  14 /**
  15  * The KeyMap class contains all bindings from keys to operations.
  16  *
  17  * @author <a href="mailto:gnodet@gmail.com">Guillaume Nodet</a>
  18  * @since 2.6
  19  */
  20 public class KeyMap {
  21 
  22     public static final String VI_MOVE        = "vi-move";
  23     public static final String VI_INSERT      = "vi-insert";
  24     public static final String EMACS          = "emacs";
  25     public static final String EMACS_STANDARD = "emacs-standard";
  26     public static final String EMACS_CTLX     = "emacs-ctlx";
  27     public static final String EMACS_META     = "emacs-meta";
  28 
  29     private static final int KEYMAP_LENGTH = 256;


< prev index next >