can not copy content selected by shift-key

Asked by agou

in Ubuntu8.04 and Ubuntu9.10, I use gnome-terminal to run my program, and copy the output content to gedit to analyze. If the content is too large, I usually use shift-key + mouse-left to select the content I need, and copy this content to gedit. It is alway successful.

but in Ubuntu10.04, I can't use shift key to do this. my system is upgrade from ubuntu9.10 to ubuntu10.04.

can anyone help me?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gnome-terminal Edit question
Assignee:
No assignee Edit question
Solved by:
agou
Solved:
Last query:
Last reply:
Revision history for this message
agou (agooou) said :
#1

I've already download gnome-terminal and switch to tag2.22.1 which is used on Ubuntu8.04. then compile it on ubuntu10.04, but the problem still exist.
maybe the problem does nothing about gnome-terminal. maybe associate with other things.
any ideas?

Revision history for this message
Marc Stewart (marc.stewart) said :
#2

I can't help with your shift-clicking (which works for me on 10.04), though I do have a possible suggestion for you. Is there anything stopping you routing the output to a file, which you could then open in gedit, saving you from copying any text in the terminal at all. For example,
myprogram >/tmp/my-programs-output && gedit /tmp/my-programs-output
"/tmp/my-programs-output" can be replaced with any filename you like.

Revision history for this message
agou (agooou) said :
#3

thank you! your method is ok, but not convenient.
not only me meet this problem, a colleague upgrade ubuntu from 9.10 to 10.04 in vmware virtual machine. and he meet this problem either.
maybe this problem only exist when upgrading?

Revision history for this message
agou (agooou) said :
#4

Is there anyone else meet this problem?
if no one meet this, can someone give me a configure file of gnome-terminal. I think maybe it is cause by some setting?

Revision history for this message
agou (agooou) said :
#5

after reading the gnome-terminal code, I found it call vte_terminal_get_has_selection() to determine whether there is something selected.
then, I download vte code, checking the history of vte.c, and final found that behdad has remove this function and leave it be a bug 614658. because this operation is hard to deal with.

now, I can do the selection with the following way.
one hand hold on mouse-left, and the other hand press on shift key, and the "third hand" click PgUp/PgDn key.
aha, it is very cool.

Revision history for this message
agou (agooou) said :
#6

another way, you can reinstall the old version of vte.