com.maverick.sshd.shell
Class Edit

java.lang.Object
  extended by com.maverick.sshd.shell.AbstractCommand
      extended by com.maverick.sshd.shell.Edit
All Implemented Interfaces:
ShellCommand, Completor

public class Edit
extends AbstractCommand


Nested Class Summary
 class Edit.EditBuffer
           
 
Field Summary
 
Fields inherited from class com.maverick.sshd.shell.AbstractCommand
exitCode
 
Fields inherited from interface com.maverick.sshd.shell.ShellCommand
STILL_ACTIVE, SUBSYSTEM_CALLBACK, SUBSYSTEM_FILESYSTEM, SUBSYSTEM_HELP, SUBSYSTEM_JVM, SUBSYSTEM_POLICY, SUBSYSTEM_SHELL, SUBSYSTEM_SSHD, SUBSYSTEM_SYSTEM, SUBSYSTEM_TEXT_EDITING
 
Constructor Summary
Edit()
           
 
Method Summary
 void backspace()
           
protected  void checkNewCursorLine()
           
 void cursorDown()
           
 void cursorLeft()
           
 void cursorRight()
           
 void cursorUp()
           
 void delete()
           
 void deleteLine()
           
protected  void drawLine(String line)
           
 void endOfLine()
           
 void enter()
           
 String expandTabs(String line)
           
protected  char getCursorChar()
           
protected  String getCursorLine()
           
 void loadFile(String path)
           
 void pageDown()
           
 void pageUp()
           
 void redraw()
           
 void run(org.apache.commons.cli.CommandLine args, VirtualProcess process)
           
 void search()
           
 boolean searchAgain(boolean wrap)
           
 void startOfLine()
           
 void typeCharacter(char ch)
           
 void typeString(String str)
           
 
Methods inherited from class com.maverick.sshd.shell.AbstractCommand
complete, getCollection, getCommandName, getDescription, getExitCode, getName, getOptions, getSignature, getSubsystem, isBuiltIn, setBuiltIn, setDescription, setName, setSignature, setSubsystem
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Edit

public Edit()
Method Detail

run

public void run(org.apache.commons.cli.CommandLine args,
                VirtualProcess process)
         throws IOException,
                PermissionDeniedException
Throws:
IOException
PermissionDeniedException

pageUp

public void pageUp()
            throws IOException
Throws:
IOException

pageDown

public void pageDown()
              throws IOException
Throws:
IOException

cursorUp

public void cursorUp()
              throws IOException
Throws:
IOException

cursorDown

public void cursorDown()
                throws IOException
Throws:
IOException

endOfLine

public void endOfLine()
               throws IOException
Throws:
IOException

startOfLine

public void startOfLine()
                 throws IOException
Throws:
IOException

checkNewCursorLine

protected void checkNewCursorLine()

cursorLeft

public void cursorLeft()
                throws IOException
Throws:
IOException

backspace

public void backspace()
               throws IOException
Throws:
IOException

delete

public void delete()
            throws IOException
Throws:
IOException

deleteLine

public void deleteLine()
                throws IOException
Throws:
IOException

cursorRight

public void cursorRight()
                 throws IOException
Throws:
IOException

typeString

public void typeString(String str)
                throws IOException
Throws:
IOException

typeCharacter

public void typeCharacter(char ch)
                   throws IOException
Throws:
IOException

enter

public void enter()
           throws IOException
Throws:
IOException

getCursorLine

protected String getCursorLine()

getCursorChar

protected char getCursorChar()

search

public void search()
            throws IOException
Throws:
IOException

searchAgain

public boolean searchAgain(boolean wrap)
                    throws IOException
Throws:
IOException

redraw

public void redraw()
            throws IOException
Throws:
IOException

drawLine

protected void drawLine(String line)
                 throws IOException
Throws:
IOException

expandTabs

public String expandTabs(String line)

loadFile

public void loadFile(String path)
              throws IOException,
                     PermissionDeniedException
Throws:
IOException
PermissionDeniedException


Copyright © 2012. All Rights Reserved.