Package com.soulfiremc.server.util.log4j
Class GenericTerminalConsole
java.lang.Object
net.minecrell.terminalconsole.SimpleTerminalConsole
com.soulfiremc.server.util.log4j.GenericTerminalConsole
public final class GenericTerminalConsole
extends net.minecrell.terminalconsole.SimpleTerminalConsole
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static interface
static final record
-
Constructor Summary
ConstructorsConstructorDescriptionGenericTerminalConsole
(ShutdownManager shutdownManager, GenericTerminalConsole.CommandExecutor commandExecutor, GenericTerminalConsole.CommandCompleter commandCompleter, Path historyDirectory) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.jline.reader.LineReader
buildReader
(org.jline.reader.LineReaderBuilder builder) protected boolean
protected void
runCommand
(String command) static void
Sets upSystem.out
andSystem.err
to redirect to log4j.protected void
shutdown()
Methods inherited from class net.minecrell.terminalconsole.SimpleTerminalConsole
processInput, start
-
Constructor Details
-
GenericTerminalConsole
public GenericTerminalConsole(ShutdownManager shutdownManager, GenericTerminalConsole.CommandExecutor commandExecutor, GenericTerminalConsole.CommandCompleter commandCompleter, Path historyDirectory)
-
-
Method Details
-
setupStreams
public static void setupStreams()Sets upSystem.out
andSystem.err
to redirect to log4j. -
isRunning
protected boolean isRunning()- Specified by:
isRunning
in classnet.minecrell.terminalconsole.SimpleTerminalConsole
-
shutdown
protected void shutdown()- Specified by:
shutdown
in classnet.minecrell.terminalconsole.SimpleTerminalConsole
-
runCommand
- Specified by:
runCommand
in classnet.minecrell.terminalconsole.SimpleTerminalConsole
-
buildReader
protected org.jline.reader.LineReader buildReader(org.jline.reader.LineReaderBuilder builder) - Overrides:
buildReader
in classnet.minecrell.terminalconsole.SimpleTerminalConsole
-