xwindow剪贴板的机制 [英] Mechanism of clipboard of xwindow
问题描述
有人可以向我解释xwindow剪贴板的机制吗? 例如,如果我执行从gedit打开文件的操作,然后使用ctrl + c复制该文件的内容.然后我打开vim并使用ctrl + v将内容粘贴到新打开的文件中.我知道它将使用xwindow的缓冲区存储内容.但是我很好奇它在系统级别上是如何工作的.更具体地说,底层Linux内核需要如何处理此复制粘贴操作?是否有与此操作相关的系统调用? 谢谢
Can anybody explain the mechanism of clipboard of xwindow to me? For example, if I make a operation of open a file from gedit and copy the content of this file using ctrl+c. And then I open vim and use ctrl+v to paste the content into the new opened file. I know that it will use the buffer of xwindow to store the content. But I am curious how it works in the system level. More specifically, how the underlying linux kernel needs to do to handle this copy-paste operation? Is there any system call related to this operation? Thanks
推荐答案
这篇关于xwindow剪贴板的机制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!