All Known Implementing Classes:
public interface ITerminalService
Interface for getting Terminal Connections from a remote side, also known as
terminal session with Streams.
One ITerminalService instance is typically associated with one particular
connection to a (potentially remote) system, such that the ITerminalService
instance can also hold state data about that session, such as connected
state, login and authentication information, configuration data or
launchTerminal(String, String, String, String, String, IProgressMonitor)
invocation, however, acts as a factory method such that it creates a new
(remote) process and associated
- org.eclipse.rse.services 3.1
- Launch a new terminal connection, also known as shell session with
ptyType - requested terminal type for the new Terminal. Since not
all Terminal implementations support specifying the Terminal
Type, there is no guarantee that a particular setting has any
null to fall back to a default
encoding - Stream encoding to use for sending initial working
directory and initial commandToRun, and to return on
ITerminalShell.getDefaultEncoding() request. Use
null to fall back to a default encoding. The
Terminal Service will make efforts to determine a proper
default encoding on the remote side but this is not guaranteed
to be correct.
environment - Array of environment variable Strings of the form
"var=text". Since not all terminal implementations support the
passing of environment variables, there is no guarantee that
the created shell will actually have the specified environment
null is allowed in order to
specify that no specific environment needs to be passed.
initialWorkingDirectory - initial working directory or empty String
("") if not relevant. The remote shell will launch in a
directory of its own choice in that case (typically a user's
commandToRun - initial command to send to the remote side.
monitor - Progress Monitor for monitoring and cancellation during
- the terminal connection object. Note that the connection may not
actually be usable in case the remote side allows opening a
channel but immediately closes it again. In this case,
IBaseShell.getInputStream() will throw an
exception or be closed from the very beginning.
- in case an error occurred or the user
chose to cancel the operation via the progress monitor.
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.