org.crsh.console
Class Console

java.lang.Object
  extended by org.crsh.console.Console

public class Console
extends Object

A console state machine, which delegates the state machine to the Plugin implementation.

Author:
Julien Viet

Constructor Summary
Console(Shell shell, ConsoleDriver driver)
           
 
Method Summary
 void addModeListener(Runnable runnable)
           
 Iterable<org.crsh.console.KeyStroke> getKeyBuffer()
           
 Mode getMode()
           
 void init()
          Initiali
 boolean isRunning()
           
 void on(org.crsh.console.KeyStroke keyStroke)
           
 void on(org.crsh.console.KeyStroke[] keyStrokes)
           
 void on(jline.console.Operation operation, int... buffer)
           
 void setMode(Mode mode)
           
 void toEmacs()
           
 void toInsert()
           
 void toMove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Console

public Console(Shell shell,
               ConsoleDriver driver)
        throws NullPointerException
Throws:
NullPointerException
Method Detail

setMode

public void setMode(Mode mode)

toEmacs

public void toEmacs()

toMove

public void toMove()

toInsert

public void toInsert()

getMode

public Mode getMode()

addModeListener

public void addModeListener(Runnable runnable)

isRunning

public boolean isRunning()

init

public void init()
Initiali


getKeyBuffer

public Iterable<org.crsh.console.KeyStroke> getKeyBuffer()

on

public void on(jline.console.Operation operation,
               int... buffer)

on

public void on(org.crsh.console.KeyStroke keyStroke)

on

public void on(org.crsh.console.KeyStroke[] keyStrokes)


Copyright © 2015 eXo Platform SAS. All Rights Reserved.