Added clipboard support.
This commit is contained in:
1 parent
72ba6fcaa0
commit
e1a6378607
7 files changed
+118
-3
No files matched your search
@@ -113,7 +113,13 @@ public class GuacamoleClient extends Client {
|
||||
}
|
||||
|
||||
public void setClipboard(String clipboard) throws GuacamoleException {
|
||||
// STUB
|
||||
try {
|
||||
output.write("clipboard:" + Instruction.escape(clipboard) + ";");
|
||||
output.flush();
|
||||
}
|
||||
catch (IOException e) {
|
||||
throw new GuacamoleException(e);
|
||||
}
|
||||
}
|
||||
|
||||
public void disconnect() throws GuacamoleException {
|
||||
|
||||
@@ -29,7 +29,7 @@ public abstract class Instruction {
|
||||
@Override
|
||||
public abstract String toString();
|
||||
|
||||
public String escape(String str) {
|
||||
public static String escape(String str) {
|
||||
|
||||
StringBuffer sb = new StringBuffer();
|
||||
|
||||
|
||||
Reference in new issue
Block a user