mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 05:31:22 +00:00
Added clipboard support.
This commit is contained in:
@@ -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