You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can ignore the reutrning channel if you don't need this type of
52
+
You can ignore the returning channel if you don't need this type of
46
53
notification. Furthermore, when you need more than just knowing whether
47
54
clipboard data is changed, use the watcher API:
48
55
@@ -95,15 +102,29 @@ background using a shell `&` operator, for example:
95
102
$ cat x.txt | gclip -copy &
96
103
```
97
104
98
-
## Additional Notes
105
+
## Platform Specific Details
106
+
107
+
This package spent efforts to provide cross platform abstraction regarding
108
+
accessing system clipboards, but here are a few details you might need to know.
109
+
110
+
### Dependency
111
+
112
+
- Unix-like users: require X11 dev package. For instance, Linux users should install `libx11-dev` or `xorg-dev` or `libX11-devel` to access X window system.
113
+
- macOS users: require Cgo, no dependency
114
+
- Windows users: no Cgo, no dependency
115
+
116
+
### Screenshot
99
117
100
-
In general, to put image data to system clipboard, there are system level shortcuts:
118
+
In general, when you need test your implementation regarding images,
119
+
There are system level shortcuts to put screenshot image into your system clipboard:
101
120
102
-
- On macOS, using shortcut `Ctrl+Shift+Cmd+4`
103
-
- On Linux/Ubuntu, using `Ctrl+Shift+PrintScreen`
121
+
- On macOS, use `Ctrl+Shift+Cmd+4`
122
+
- On Linux/Ubuntu, use `Ctrl+Shift+PrintScreen`
123
+
- On Windows, use `Shift+Win+s`
104
124
105
-
The package supports read/write plain text or PNG encoded image data.
106
-
The other types of data are not supported yet, i.e. undefined behavior.
125
+
As described in the API documentation, the package supports read/write
126
+
UTF8 encoded plain text or PNG encoded image data. Thus,
127
+
the other types of data are not supported yet, i.e. undefined behavior.
0 commit comments