Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
SetClipboard()
override void ReLogic.OS.OSX.Clipboard.SetClipboard
(
string
text
)
inline
protected
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
}
System.Diagnostics.ProcessStartInfo
Definition
ProcessStartInfo.cs:17
System.Diagnostics.Process
Definition
Process.cs:18
System.Exception
Definition
Exception.cs:15
System.ExceptionArgument.text
@ text
System.ConsoleKey.Process
@ Process
References
System.Process
, and
System.text
.
ReLogic
OS
OSX
Clipboard
Generated by
1.10.0