Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ SetClipboard()

override void ReLogic.OS.OSX.Clipboard.SetClipboard ( string text)
inlineprotected

Definition at line 33 of file Clipboard.cs.

34 {
35 try
36 {
37 using Process process = new Process();
38 process.StartInfo = new ProcessStartInfo("pbcopy", "-pboard general -Prefer txt")
39 {
40 UseShellExecute = false,
41 RedirectStandardOutput = false,
42 RedirectStandardInput = true
43 };
44 process.Start();
45 process.StandardInput.Write(text);
46 process.StandardInput.Close();
47 process.WaitForExit();
48 }
49 catch (Exception)
50 {
51 }
52 }

References System.Process, and System.text.