
非常感谢你
解决方法 您是否尝试首先找到代码而不是实现的程序?我为你做了这个,发现很多使用直接X11调用的实现.我认为最有价值的是 this,但你也可以阅读 this.只需找到任何程序并查找来源.尝试在维基百科上查看哪些应用程序使用x11剪贴板/选择系统.The following programs specifically operate on data transfer
mechanisms:
xcutseltransfers data from selections to cut buffers or vice versa
xclipboard,glipper(Gnome),parcellite(LXDE),andklipper(KDE) are
clipboard managers,maybewmcliphistas wellxcbshows the content of
the cut buffers and allows the user to manipulate them xselection,
xclip,xselandxcopyare command line programs that copy data to or
from the X selection. xcopy has a verbosity option that helps deBUG X
selection issues. parcellite also has the ability to read from and
write to specific X selections from the command line.
synergyis a cross platform tool that allows you to share a clipboard across
multiple computers running multiple operating systems
xfce4-clipman-pluginis a “clipboard history plugin for the Xfce4
panel” and also a clipboard manager xtranslate looks up words in the
Xselection in a multi-lingual dictionary autocutsel syncs cut buffer
and selection buffer
简而言之,理论上,X11有2个“剪贴板”:实际上是一个键盘和选择 – 你可以通过按鼠标中键将你选中的文字粘贴到你想要的任何地方,而实际的“键盘”是用于主/默认剪贴板目的由不同类型的物体交换.
附:根据我的经验,我不再使用x11了.请享用 :)
总结以上是内存溢出为你收集整理的C从Linux上的剪贴板中获取字符串全部内容,希望文章能够帮你解决C从Linux上的剪贴板中获取字符串所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)