diff options
Diffstat (limited to 'plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/launch/setup/IRemoteShell.java')
-rw-r--r-- | plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/launch/setup/IRemoteShell.java | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/launch/setup/IRemoteShell.java b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/launch/setup/IRemoteShell.java new file mode 100644 index 000000000..4e052a6b4 --- /dev/null +++ b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/launch/setup/IRemoteShell.java @@ -0,0 +1,53 @@ +/******************************************************************************* + * Copyright (c) 2009, 2010 Wind River Systems, Inc. and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Wind River Systems - initial API and implementation + *******************************************************************************/ +package org.eclipse.tm.internal.tcf.debug.ui.launch.setup; + +import java.io.IOException; + +interface IRemoteShell { + + /** + * String that is used as shell prompt. + */ + static final String PROMPT = "***SHELL***>"; + + /** + * Send text to remote shell. + * @param s - a string for shell input. + * @throws IOException + */ + void write(String s) throws IOException; + + /** + * Read shell output until given string if found. + * @param s - a string to search in shell output. + * @throws IOException + */ + void expect(String s) throws IOException; + + /** + * Read and collect shell output until shell prompt is found. + * @return shell output, not including the prompt. + * @throws IOException + */ + String waitPrompt() throws IOException; + + /** + * Exit shell and close communication channel. + * @throws IOException + */ + void close() throws IOException; + + /** + * Enable/disable debug output to System.out. + */ + void setDebug(boolean debug); +} |