免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1685 | 回复: 5

[桌面系统] [结贴]能否让X term拥有拷贝/粘帖的功能。 [复制链接]

论坛徽章:
0
发表于 2013-06-11 16:36 |显示全部楼层
本帖最后由 weichuang02 于 2013-06-16 22:31 编辑

在我的gnome桌面上,所有程序窗口的可编辑文字都是可以拷贝/粘帖的。

但是有些程序会调用X term作为输出的窗口。我发现在X term上右键不支持任何操作。

这是原始的X term就设计成这样? 还是可以通过什么配置也能让X term显示出来的文字支持粘帖?

目前这个情况非常影响我的工作效率,因为我每次都要看着X term显示的内容,然后敲一遍到我的报告里面。
有些商用程序设计得就是弹一个X term窗口显示某些内容,这个我改不了。

能做到呢? 多谢指点!

论坛徽章:
48
15-16赛季CBA联赛之青岛
日期:2021-01-07 13:41:2315-16赛季CBA联赛之上海
日期:2020-12-01 18:02:0720周年集字徽章-20	
日期:2020-10-28 14:14:2620周年集字徽章-20	
日期:2020-10-28 14:04:3015-16赛季CBA联赛之天津
日期:2020-10-18 22:51:412016猴年福章徽章
日期:2016-02-18 15:30:3415-16赛季CBA联赛之北控
日期:2015-12-22 13:30:48操作系统版块每日发帖之星
日期:2015-12-07 06:20:00操作系统版块每日发帖之星
日期:2015-09-04 06:20:002015亚冠之德黑兰石油
日期:2015-08-05 18:46:082015年亚洲杯之巴勒斯坦
日期:2015-04-19 10:42:502015年亚洲杯之巴林
日期:2015-04-09 08:03:23
发表于 2013-06-11 20:02 |显示全部楼层

论坛徽章:
7
酉鸡
日期:2013-09-11 19:03:52午马
日期:2013-09-16 10:57:59处女座
日期:2013-09-16 17:39:24酉鸡
日期:2013-09-22 16:13:42丑牛
日期:2013-10-23 14:29:53水瓶座
日期:2013-11-26 11:30:02天秤座
日期:2014-03-21 16:00:19
发表于 2013-06-13 14:54 |显示全部楼层
在linux里,选中内容就是复制,点击鼠标中键或者同时点击左右键就是粘贴。

论坛徽章:
0
发表于 2013-06-14 16:49 |显示全部楼层
lbseraph 发表于 2013-06-11 20:02
看看这个帖子:
http://www.linuxquestions.org/qu ... te-in-xterm-130077/ ...


我打不开这个链接... ...难道被屏了?
能否复制一下主要的内容呢? 多谢了哈!

论坛徽章:
48
15-16赛季CBA联赛之青岛
日期:2021-01-07 13:41:2315-16赛季CBA联赛之上海
日期:2020-12-01 18:02:0720周年集字徽章-20	
日期:2020-10-28 14:14:2620周年集字徽章-20	
日期:2020-10-28 14:04:3015-16赛季CBA联赛之天津
日期:2020-10-18 22:51:412016猴年福章徽章
日期:2016-02-18 15:30:3415-16赛季CBA联赛之北控
日期:2015-12-22 13:30:48操作系统版块每日发帖之星
日期:2015-12-07 06:20:00操作系统版块每日发帖之星
日期:2015-09-04 06:20:002015亚冠之德黑兰石油
日期:2015-08-05 18:46:082015年亚洲杯之巴勒斯坦
日期:2015-04-19 10:42:502015年亚洲杯之巴林
日期:2015-04-09 08:03:23
发表于 2013-06-14 19:54 |显示全部楼层
回复 4# weichuang02

Copying from xterm to another application :

When you highlight something in xterm, it gets copied to your primary buffer. The only way to paste something from your primary buffer is to click your scroll (on your scroll mouse) or click your left and right keys of your mouse simultaneously.

ctrl-v pastes from your clipboard. xterm does not recognise the clipboard and nor does it recognise the keys ctrl-v. Hence, the conventional copy-paste method does not work.

I would recommend you try the following -
(a) Open xterm and select (highlight) the text you want to copy
(b) Go to the application where you want to paste the text. Hover your mouse above the place where you want to paste.
(c) Click your scroll button on your mouse.

One should be very careful about the primary buffer. Being very volatile, any higlighting will erase the buffer of its previous contents. For instance, an alt-d (in firefox) will replace the contents of your primary buffer with the url of your opened tab.


Copying from another application to xterm :

Most other applications, the process of copying to the clipboard results in copying to the primary buffer as well. For instance, when we wish to copy (for instance) the url opened in a certain tab, we do the following -
(a) Open the tab and highlight the url (a ctrl-a or alt-d, etc)
(b) Click ctrl-c to copy the string
Here, in step (a), we write to the primary buffer and in step (b), we write to the clipboard.

Thus, when we wish to copy some text and paste it in xterm, all we need to do is select the text (highlight it) and move your cursor to xterm and click the scroll button.
(Note : We don't need to do a ctrl-c!)


If you wish to fiddle around a little more with your xterm keybindings, etc., this article might help you -
http://www.davidsimmons.com/soft/xtermhacks/

论坛徽章:
0
发表于 2013-06-17 07:39 |显示全部楼层
linux命令行下  鼠标拖动选中就是复制。 中键黏贴。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP