Gets the current system clipboard text.
Usage #
package main
import (
"fmt"
t "github.com/hugmouse/gotermux"
)
func main() {
clipboardText := t.TermuxClipboardGet()
fmt.Println("Clipboard contains:", clipboardText)
}Output:
Clipboard contains: Hello WorldReturn Value #
Returns string containing the current clipboard text.