Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_PROMPT |
static String |
IGNORE_INTERRUPTS |
static String |
LAST_EXCEPTION |
static String |
PRINT_STACK_TRACES |
static String |
PROMPT |
protected org.apache.felix.service.command.CommandSession |
session |
static String |
SHELL_HISTORY_MAXSIZE |
static String |
SHELL_INIT_SCRIPT |
protected org.apache.felix.service.threadio.ThreadIO |
threadIO |
Constructor and Description |
---|
Console(org.apache.felix.service.command.CommandProcessor processor,
org.apache.felix.service.threadio.ThreadIO threadIO,
InputStream in,
PrintStream out,
PrintStream err,
jline.Terminal term,
String encoding,
Runnable closeCallback,
org.osgi.framework.BundleContext bc) |
Modifier and Type | Method and Description |
---|---|
void |
close(boolean closedByUser) |
protected CommandsCompleter |
createCompleter() |
protected boolean |
getBoolean(String name) |
protected File |
getHistoryFile()
Subclasses can override to use a different history file.
|
protected String |
getPrompt() |
org.apache.felix.service.command.CommandSession |
getSession() |
void |
run() |
protected void |
setSessionProperties() |
protected void |
welcome() |
public static final String SHELL_INIT_SCRIPT
public static final String SHELL_HISTORY_MAXSIZE
public static final String PROMPT
public static final String DEFAULT_PROMPT
public static final String PRINT_STACK_TRACES
public static final String LAST_EXCEPTION
public static final String IGNORE_INTERRUPTS
protected org.apache.felix.service.command.CommandSession session
protected org.apache.felix.service.threadio.ThreadIO threadIO
public Console(org.apache.felix.service.command.CommandProcessor processor, org.apache.felix.service.threadio.ThreadIO threadIO, InputStream in, PrintStream out, PrintStream err, jline.Terminal term, String encoding, Runnable closeCallback, org.osgi.framework.BundleContext bc) throws Exception
Exception
protected File getHistoryFile()
public org.apache.felix.service.command.CommandSession getSession()
public void close(boolean closedByUser)
protected boolean getBoolean(String name)
protected void welcome()
protected void setSessionProperties()
protected CommandsCompleter createCompleter()
protected String getPrompt()
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.