剪切板方面的好文

剪切板方面的好文:https://laurent.modolo.fr/notes.php

There ex­ist two buffers to per­form copy and paste op­er­a­tions in Xorg: the se­lec­tion buffer and the clip­board buffer. The clip­board buffer is the one peo­ple are the most used to. Gen­er­ally to save the se­lec­tion into the clip­board buffer we sim­ply press ctrl+c. Note that in a ter­mi­nal win­dow the ctrl+c short­cut is go­ing to ter­mi­nate the cur­rent ap­pli­ca­tion, there­fore, we gen­er­ally have to press ctrl+shift+c to ob­tain the same re­sult. Sim­i­larly, to paste the clip­board con­tent at the po­si­tion of the cur­sor we have to press ctrl+v or ctrl+shift+v in a ter­mi­nal win­dow.

The se­lec­tion buffer con­tains the last text se­lected. Gen­er­ally we paste the se­lec­tion buffer con­tent by press­ing the mouse mid­dle but­ton. We can also per­form the same ac­tion by press­ing ctrl+insert or ctrl+shift+insert de­pend­ing on the ap­pli­ca­tion.

Note: Dif­fer­ent graph­i­cal toolk its like gtk2, gtk3, Qt, etc can im­ple­ment their own clip­boards which are not nec­es­sar­ily syn­chro­nized with the Xorg clip­board.

转载于:https://my.oschina.net/hudson/blog/3019603

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值