Lines 16-27
Link Here
|
16 |
|
16 |
|
17 |
package org.eclipse.rse.services.shells; |
17 |
package org.eclipse.rse.services.shells; |
18 |
|
18 |
|
|
|
19 |
import java.io.IOException; |
20 |
import java.io.InputStream; |
21 |
import java.io.OutputStream; |
22 |
|
19 |
|
23 |
|
20 |
public interface IHostShell |
24 |
public interface IHostShell |
21 |
{ |
25 |
{ |
22 |
public boolean isActive(); |
26 |
public boolean isActive(); |
23 |
public void writeToShell(String command); |
27 |
public void writeToShell(String command); |
24 |
|
28 |
|
|
|
29 |
/** |
30 |
* |
31 |
* @return input stream for the current shell |
32 |
* @throws IOException |
33 |
*/ |
34 |
public InputStream getInputStream() throws IOException; |
35 |
|
36 |
/** |
37 |
* |
38 |
* @return output stream for the current shell |
39 |
*/ |
40 |
public OutputStream getOutputStream() throws IOException; |
41 |
|
25 |
public void addOutputListener(IHostShellOutputListener listener); |
42 |
public void addOutputListener(IHostShellOutputListener listener); |
26 |
|
43 |
|
27 |
public IHostShellOutputReader getStandardOutputReader(); |
44 |
public IHostShellOutputReader getStandardOutputReader(); |
Lines 29-32
Link Here
|
29 |
|
46 |
|
30 |
public void exit(); |
47 |
public void exit(); |
31 |
|
48 |
|
|
|
49 |
/** |
50 |
* @return true if a local echo is needed. |
51 |
* TODO:Michael Scharf: this should be handed within the connection.... |
52 |
*/ |
53 |
boolean isLocalEcho(); |
54 |
|
55 |
/** |
56 |
* Notify the remote site that the size of the terminal has changed. |
57 |
* @param newWidth |
58 |
* @param newHeight |
59 |
*/ |
60 |
void setTerminalSize(int newWidth, int newHeight); |
32 |
} |
61 |
} |