Package: gnome-terminal
Version: 2.30.2-1
Severity: wishlist
Tags: patch

The manual says

  "For all text selections, GNOME Terminal copies the selected text
   into the clipboard when you release the mouse button."

but I think it should say

  "For all text selections, GNOME Terminal copies the selected text
   into the primary selection when you release the mouse button. The
   primary selection is an alternative to clipboard."

This is the expected behavior and this is the behavior that
gnome-terminal actually currently implements. If you want to test you
can use the following script to see the contents of primary selection
and clipboard:

#!/bin/bash

function show_container {
    name="$1"
    cmd="$2"
    escaped_data="`$cmd | cat -A | tr -d '\n' | cut --bytes=1-70`"
    echo "$name: \"$escaped_data\""
}

for i in primary secondary clipboard; do
    show_container $i "xclip -o -selection $i"
done;
for i in `seq 0 7`; do
    show_container cut$i "xcb -p $i"
done


I've attached a patch against git head.


>From 325ed4e1570076a4a2b8517205aacce96325b375 Mon Sep 17 00:00:00 2001
From: Timo Juhani Lindfors <[email protected]>
Date: Thu, 30 Jun 2011 13:39:48 +0300
Subject: [PATCH] Describe current copy paste behavior more accurately

---
 help/C/gnome-terminal.xml |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/help/C/gnome-terminal.xml b/help/C/gnome-terminal.xml
index b76c4b5..b539a53 100644
--- a/help/C/gnome-terminal.xml
+++ b/help/C/gnome-terminal.xml
@@ -612,22 +612,22 @@ text-based commands through a shell such as Bash.
                   </listitem> 
                 </itemizedlist> 
                 <para>
-                  These actions select all text between the first and last items. For all text selections, <application>&app;</application> copies the selected text into the clipboard when you release the mouse button. To explicitly copy the selected text, choose <menuchoice><guimenu>Edit</guimenu><guimenuitem>Copy</guimenuitem></menuchoice>.</para>
+                  These actions select all text between the first and last items. For all text selections, <application>&app;</application> copies the selected text into the primary selection when you release the mouse button. Primary selection and clipboard are separate buffers. To copy the selected text to the clipboard, choose <menuchoice><guimenu>Edit</guimenu><guimenuitem>Copy</guimenuitem></menuchoice>.</para>
              </listitem> 
           </varlistentry> 
           <varlistentry> 
              <term>To paste text into a terminal:</term> 
              <listitem> 
                 <para>
-                  If you previously copied text to the clipboard, you can paste the text into a terminal by performing one of the following actions: </para>
+                  If you previously copied text to the primary selection or clipboard, you can paste the text into a terminal by performing one of the following actions: </para>
                 <itemizedlist> 
                   <listitem> 
                      <para>
-                        To paste text that you copied by selection only, middle-click at the command prompt. If you do not have a middle mouse button, refer to the X Server documentation for information about how to emulate the middle mouse button.  </para>
+                        To paste text that you copied to primary selection, middle-click at the command prompt. If you do not have a middle mouse button, refer to the X Server documentation for information about how to emulate the middle mouse button.  </para>
                   </listitem> 
                   <listitem> 
                      <para>
-                        To paste text that you explicitly copied, choose <menuchoice><guimenu>Edit</guimenu><guimenuitem>Paste</guimenuitem></menuchoice>. </para>
+                        To paste text that you copied to the clipboard, choose <menuchoice><guimenu>Edit</guimenu><guimenuitem>Paste</guimenuitem></menuchoice>. </para>
                   </listitem> 
                 </itemizedlist> 
              </listitem> 
-- 
1.7.2.5




-- System Information:
Debian Release: 6.0.2
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gnome-terminal depends on:
ii  gnome-terminal-data    2.30.2-1          Data files for the GNOME terminal 
ii  libatk1.0-0            1.30.0-1          The ATK accessibility toolkit
ii  libc6                  2.11.2-10         Embedded GNU C Library: Shared lib
ii  libdbus-glib-1-2       0.88-2.1          simple interprocess messaging syst
ii  libgconf2-4            2.28.1-6          GNOME configuration database syste
ii  libglib2.0-0           2.24.2-1          The GLib library of C routines
ii  libgtk2.0-0            2.20.1-2          The GTK+ graphical user interface 
ii  libice6                2:1.0.6-2         X11 Inter-Client Exchange library
ii  libpango1.0-0          1.28.3-1+squeeze2 Layout and rendering of internatio
ii  libsm6                 2:1.1.1-1         X11 Session Management library
ii  libvte9                1:0.24.3-2        Terminal emulator widget for GTK+ 
ii  libx11-6               2:1.3.3-4         X11 client-side library

Versions of packages gnome-terminal recommends:
ii  gvfs                     1.6.4-3         userspace virtual filesystem - ser
ii  yelp                     2.30.1+webkit-1 Help browser for GNOME

gnome-terminal suggests no packages.

-- no debconf information

Reply via email to