-
Notifications
You must be signed in to change notification settings - Fork 3
06 Writing to the clipboard
Vladyslav Pekker edited this page Dec 26, 2015
·
5 revisions
In the ClipboardModule spells defines the object Clipboard
, which defines the methods readString: Try[String]
and writeString(content: String): Try[Unit]
respectively:
scala> Clipboard.writeString("Hello World!")
res0: scala.util.Try[Unit] = Success(())
scala> Clipboard.readString
res1: scala.util.Try[String] = Success(Hello World!)
The defaults can be found in the reference.conf file and the Configuration wiki page shows how to override as well as retrieve them programmatically.