public class Edit extends ShellCommand
Modifier and Type | Class and Description |
---|---|
class |
Edit.EditBuffer |
SUBSYSTEM_CALLBACK, SUBSYSTEM_FILESYSTEM, SUBSYSTEM_HELP, SUBSYSTEM_JVM, SUBSYSTEM_POLICY, SUBSYSTEM_SHELL, SUBSYSTEM_SSHD, SUBSYSTEM_SYSTEM, SUBSYSTEM_TEXT_EDITING
exitCode
STILL_ACTIVE
Constructor and Description |
---|
Edit() |
Modifier and Type | Method and Description |
---|---|
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) |
complete, getCollection, getCommandName, getDescription, getExitCode, getName, getOptions, getProcess, getSignature, getSubsystem, hasFixedOptions, init, isBuiltIn, isHidden, setBuiltIn, setDescription, setName, setSignature, setSubsystem
public void run(org.apache.commons.cli.CommandLine args, VirtualProcess process) throws IOException, PermissionDeniedException
IOException
PermissionDeniedException
public void pageUp() throws IOException
IOException
public void pageDown() throws IOException
IOException
public void cursorUp() throws IOException
IOException
public void cursorDown() throws IOException
IOException
public void endOfLine() throws IOException
IOException
public void startOfLine() throws IOException
IOException
protected void checkNewCursorLine()
public void cursorLeft() throws IOException
IOException
public void backspace() throws IOException
IOException
public void delete() throws IOException
IOException
public void deleteLine() throws IOException
IOException
public void cursorRight() throws IOException
IOException
public void typeString(String str) throws IOException
IOException
public void typeCharacter(char ch) throws IOException
IOException
public void enter() throws IOException
IOException
protected String getCursorLine()
protected char getCursorChar()
public void search() throws IOException
IOException
public boolean searchAgain(boolean wrap) throws IOException
IOException
public void redraw() throws IOException
IOException
protected void drawLine(String line) throws IOException
IOException
public void loadFile(String path) throws IOException, PermissionDeniedException
IOException
PermissionDeniedException
Copyright © 2024. All rights reserved.