Package org.dellroad.jct.core
Interface Shell
- All Known Implementing Classes:
JShellShell
,SimpleShell
public interface Shell
A console component that is capable of interacting with a human via a terminal.
Typically this is done via some kind of read-eval-print loop.
-
Method Summary
Modifier and TypeMethodDescriptionnewShellSession
(ShellRequest request) Create a new interactive shell session.
-
Method Details
-
newShellSession
Create a new interactive shell session.If the request fails, this method should return null and write an error message to
request.
getTerminal()
.- Parameters:
request
- interactive shell request- Returns:
- interactive session, or null on failure
- Throws:
IOException
- if an I/O error occursIllegalArgumentException
- ifrequest
is null
-