Package jline.console
Class KeyMap
- java.lang.Object
-
- jline.console.KeyMap
-
public class KeyMap extends java.lang.ObjectThe KeyMap class contains all bindings from keys to operations.- Since:
- 2.6
- Author:
- Guillaume Nodet
-
-
Field Summary
Fields Modifier and Type Field Description static charCTRL_CBstatic charCTRL_Dstatic charCTRL_Gstatic charCTRL_Hstatic charCTRL_Istatic charCTRL_Jstatic charCTRL_Mstatic charCTRL_OBstatic charCTRL_Rstatic charCTRL_Sstatic charCTRL_Ustatic charCTRL_Xstatic charCTRL_Ystatic intDELETEstatic java.lang.StringEMACSstatic java.lang.StringEMACS_CTLXstatic java.lang.StringEMACS_METAstatic java.lang.StringEMACS_STANDARDstatic charESCAPEstatic java.lang.StringVI_INSERTstatic java.lang.StringVI_MOVE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbind(java.lang.CharSequence keySeq, java.lang.Object function)voidbindIfNotBound(java.lang.CharSequence keySeq, java.lang.Object function)static KeyMapemacs()static KeyMapemacsCtrlX()static KeyMapemacsMeta()voidfrom(KeyMap other)java.lang.ObjectgetAnotherKey()java.lang.ObjectgetBound(java.lang.CharSequence keySeq)java.lang.StringgetName()static booleanisMeta(char c)static java.util.Map<java.lang.String,KeyMap>keyMaps()static charmeta(char c)voidsetBlinkMatchingParen(boolean on)static charunMeta(char c)static KeyMapviInsertion()static KeyMapviMovement()
-
-
-
Field Detail
-
VI_MOVE
public static final java.lang.String VI_MOVE
- See Also:
- Constant Field Values
-
VI_INSERT
public static final java.lang.String VI_INSERT
- See Also:
- Constant Field Values
-
EMACS
public static final java.lang.String EMACS
- See Also:
- Constant Field Values
-
EMACS_STANDARD
public static final java.lang.String EMACS_STANDARD
- See Also:
- Constant Field Values
-
EMACS_CTLX
public static final java.lang.String EMACS_CTLX
- See Also:
- Constant Field Values
-
EMACS_META
public static final java.lang.String EMACS_META
- See Also:
- Constant Field Values
-
CTRL_D
public static final char CTRL_D
- See Also:
- Constant Field Values
-
CTRL_G
public static final char CTRL_G
- See Also:
- Constant Field Values
-
CTRL_H
public static final char CTRL_H
- See Also:
- Constant Field Values
-
CTRL_I
public static final char CTRL_I
- See Also:
- Constant Field Values
-
CTRL_J
public static final char CTRL_J
- See Also:
- Constant Field Values
-
CTRL_M
public static final char CTRL_M
- See Also:
- Constant Field Values
-
CTRL_R
public static final char CTRL_R
- See Also:
- Constant Field Values
-
CTRL_S
public static final char CTRL_S
- See Also:
- Constant Field Values
-
CTRL_U
public static final char CTRL_U
- See Also:
- Constant Field Values
-
CTRL_X
public static final char CTRL_X
- See Also:
- Constant Field Values
-
CTRL_Y
public static final char CTRL_Y
- See Also:
- Constant Field Values
-
ESCAPE
public static final char ESCAPE
- See Also:
- Constant Field Values
-
CTRL_OB
public static final char CTRL_OB
- See Also:
- Constant Field Values
-
CTRL_CB
public static final char CTRL_CB
- See Also:
- Constant Field Values
-
DELETE
public static final int DELETE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public java.lang.String getName()
-
getAnotherKey
public java.lang.Object getAnotherKey()
-
from
public void from(KeyMap other)
-
getBound
public java.lang.Object getBound(java.lang.CharSequence keySeq)
-
bindIfNotBound
public void bindIfNotBound(java.lang.CharSequence keySeq, java.lang.Object function)
-
bind
public void bind(java.lang.CharSequence keySeq, java.lang.Object function)
-
setBlinkMatchingParen
public void setBlinkMatchingParen(boolean on)
-
isMeta
public static boolean isMeta(char c)
-
unMeta
public static char unMeta(char c)
-
meta
public static char meta(char c)
-
keyMaps
public static java.util.Map<java.lang.String,KeyMap> keyMaps()
-
emacs
public static KeyMap emacs()
-
emacsCtrlX
public static KeyMap emacsCtrlX()
-
emacsMeta
public static KeyMap emacsMeta()
-
viInsertion
public static KeyMap viInsertion()
-
viMovement
public static KeyMap viMovement()
-
-