com.maverick.sshd.shell
Class Edit
java.lang.Object
com.maverick.sshd.shell.AbstractCommand
com.maverick.sshd.shell.Edit
- All Implemented Interfaces:
- ShellCommand, Completor
public class Edit
- extends AbstractCommand
|
Constructor Summary |
Edit()
|
| 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 |
Edit
public Edit()
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.