更新时间:2023-11-23 11:58:04
也许您可以看看 xclip ,看看他们是如何做到的。
Maybe you can look at xclip and see how they have done it.
从
命令行到X
选择(剪贴板)的界面。它可以从
标准中读取数据,也可以从文件中读取数据,然后将其放入
X选择中,以粘贴到其他
X应用程序中。 xclip还可以打印X选择的
到标准输出,然后可以将
重定向到文件或
另一个程序。
It provides an interface to X selections ("the clipboard") from the command line. It can read data from standard in or a file and place it in an X selection for pasting into other X applications. xclip can also print an X selection to standard out, which can then be redirected to a file or another program.