Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Trans application cut, copy and paste? Drag and Drop Post 90455 by mschwage on Tuesday 22nd of November 2005 08:06:59 PM
Old 11-22-2005
I'm not sure about your particular scenario. But I can say that historically, X Windows (which is the GUI underbelly of GNOME and KDE, amongst other windowing systems) had two buffers. There was the buffer that the terminal window used, and the buffer that just about everything else used.

Ridiculous, no?

On my Sun machine, I actually have an extra row of keys on the lefthand side. So if I'm copying between terminal window A and window B, all I have to do is select in A, then click my middle button in B and my selection is pasted.

But if I want to paste into, say, Mozilla, I have to select in A, then hit my "Copy" key, then hit my "Paste" key in Mozilla (I think control-V works, too).

It's just another weirdness in the long running saga that is UNIX. My guess is, your emacs is run in a terminal window. And you're trying to copy/paste between it and a web browser or some other application.

This may explain your problem. You might have to use "Control-Insert" to copy and "Shift-Insert" to paste, if you have a PC and are running Linux. Play with it a bit.

Odd, isn't it?
-Mike
 

10 More Discussions You Might Find Interesting

1. UNIX Desktop Questions & Answers

Cut, Copy and Paste with X

One of the things that I have learned to take for granted in the Win32 world is the cut, copy and paste hotkeys of ^X, ^C and ^V. I use these keys all the time under Win32 to copy and paste information from one GUI into another GUI. My question is, does X have a similiar standard? ... (4 Replies)
Discussion started by: auswipe
4 Replies

2. Shell Programming and Scripting

cut & paste

hi i am new to shell scripting, i have been trying to cut columns numbered 1,4 of a file consisiting of 4 columns. Each column is seperated by 2 spaces. for example: john 6102097199 tennessee usa michel 6734590899 texas USA now, i need to cut the name... (3 Replies)
Discussion started by: t_harsha18
3 Replies

3. UNIX for Dummies Questions & Answers

cut, copy + paste

Hi all! How do I cut, copy and paste under unix??? (2 Replies)
Discussion started by: aitor314
2 Replies

4. UNIX for Dummies Questions & Answers

Drag and drop items in plain html page

Hello, Am looking for a tool / open source framework that could do the following. A plain html page, with some toolbox at the border of the page where the tool box contains individual tool that represents operation like "extend fleet", "add drives", "backtrack" or something of that sort. ... (1 Reply)
Discussion started by: matrixmadhan
1 Replies

5. Shell Programming and Scripting

cut and paste?

hi, I have a file with content like this for an employee: EmployeeID 101 Day_type, day vacation,1/2/2009 sick day, 3/2/2009 personal day, 4/5/2009 jury duty day, 5/5/2009 how do I make the result to show: EmployeeID,Day_type,day 101,vacation,1/2/2009 101,sick day,... (6 Replies)
Discussion started by: jbchen
6 Replies

6. Shell Programming and Scripting

cut and paste

Hi, Need a help with shell script. I have to search for a string in one of the file, if match found, copy the line to a new file and delete the line from the exisiting file. eg: 83510000000000063800000.1800000.1600000.1600000.2400000.1800000.2000000.21... (6 Replies)
Discussion started by: gpaulose
6 Replies

7. UNIX for Dummies Questions & Answers

Need help with using cut and paste command

I have a file which contains 3 fields separated by tabs example andrew kid baker I need to swap kid and baker using cut and paste commands how is this to be done? Thanks (1 Reply)
Discussion started by: drew211
1 Replies

8. Shell Programming and Scripting

need help with cut and paste command

I have a file which contains 3 fields separated by tabs example andrew kid baker I need to swap kid and baker using cut and paste commands how is this to be done? Thanks (3 Replies)
Discussion started by: drew211
3 Replies

9. Red Hat

FTP drag & drop

I have enabled FTP for my RHEL 5.8 server. I want to drag a file from my windows session and drop it to the FTP browser session but I am not able to do it as the file is not dragging. I hope my query is clear that the drag & drop from the windows session to the FTP browser session running on Red... (5 Replies)
Discussion started by: RHCE
5 Replies

10. Shell Programming and Scripting

Perl CGI Drag n Drop

Hi Perl Coders, I am grateful to anyone who can tell me if its possible to create drag n drop functionality within Perl. I know there are multiple GUI libraries out there, ie. Qt, Tk, wxWidget, etc., but wanted to ask first before hunting, if anyone knows if it is possible and also in... (3 Replies)
Discussion started by: patcom
3 Replies
ntextBindings(3tk)				     Alternative Bindings for the Text Widget					ntextBindings(3tk)

__________________________________________________________________________________________________________________________________________________

NAME
ntextBindings - Alternative Bindings for the Text Widget SYNOPSIS
package require Tcl 8.5 package require Tk 8.5 package require ntext ?0.81? _________________________________________________________________ DESCRIPTION
The ntext package provides a binding tag named Ntext for use by text widgets in place of the default Text binding tag. The Text binding tag provides around one hundred bindings to the text widget (the exact number is platform-dependent). A few of these behave in a way that is different from most contemporary text-editing applications. Ntext aims to provide more familiar behaviour. Features of the Ntext bindings that differ from the default Text bindings: o Clicking near the end of a (logical) line moves the cursor to the end of that line (not the start of the next line). If the widget is in -wrap word mode, the same rule applies to display lines. o Double-clicking or dragging near the end of a (logical) line will highlight/select characters from the end of that line (not the next line, or the region at the end of the line where there are no characters). If the widget is in -wrap word mode, the same rule applies to display lines. o The End key implements "Smart End" (successive keypresses move the cursor to the end of the display line, then to the end of the logical line); the Home key implements "Smart Home" (which is similar to "Smart End", but also toggles between the beginning and end of leading whitespace). o When a selection exists, a <<Paste>> operation (e.g. <Control-v>) overwrites the selection (as most editors do), and does so on all platforms. o The <Insert> key toggles between "Insert" and "Overwrite" modes for keyboard input. (In contrast, the Text binding tag uses <Insert> as a method to paste the "primary selection", a task that can be accomplished instead by mouse middle-click.) o The <Escape> key clears the selection. o Selecting with <Shift-Button1> selects from the previous position of the insertion cursor. (In the Text binding tag, the selection anchor may be the position of the previous mouse click.) o <Shift-Button1> operations do not alter the selection anchor. (In the Text binding tag, they do.) o By default, the Ntext binding tag does not provide several of the Control-key bindings supplied by the Text binding tag. Modern keyboards offer alternatives, such as cursor keys for navigation; modern applications often use the Control-key bindings for other purposes (e.g. <Control-p> for "print"). The last three cases, the behavior of Text is often useful, so Ntext gives you the option of retaining it, by setting variables defined in the ::ntext namespace to 1 (instead of their default 0). Explaining these features in more detail: o If the mouse is clicked at position A, then the keyboard is used to move the cursor to B, then shift is held down, and the mouse is clicked at C: the Text binding tag gives a selection from A to C; the Ntext gives a selection from B to C. If you want Ntext to behave like Text in this respect, set ::ntext::classicMouseSelect to 1. o The Text binding tag allows successive <Shift-Button-1> events to change both ends of the selection, by moving the selection anchor to the end of the selection furthest from the mouse click. Instead, the Ntext binding tag fixes the anchor, and multiple Shift-But- ton-1 events can only move the non-anchored end of the selection. If you want Ntext to behave like Text in this respect, set ::ntext::classicAnchor to 1. In both Text and Ntext, keyboard navigation with the Shift key held down alters the selection and keeps the selection anchor fixed. o The following "extra" Text bindings are switched off by default, but can be activated in Ntext by setting ::ntext::classicExtras to 1: <Control-a>, <Control-b>, <Control-d>, <Control-e>, <Control-f>, <Control-h>, <Control-i>, <Control-k>, <Control-n>, <Control-o>, <Control-p>, <Control-t>, <Control-space>, <Control-Shift-space>. CONFIGURATION OPTIONS
Ntext provides alternatives to a number of behaviours of the classic Text binding tag. Where there is an option, the Ntext behaviour is switched on by default, except for display-line indentation which is discussed on a separate page at ntextIndent. The behaviour of Ntext may be configured application-wide by setting the values of a number of namespace variables: ::ntext::classicAnchor o 0 - (default value) selects Ntext behaviour, i.e. the anchor point is fixed o 1 - selects classic Text behaviour, i.e. the anchor point is variable ::ntext::classicExtras o 0 - (default value) selects Ntext behaviour, i.e. several "extra" Text bindings are de-activated o 1 - selects classic Text behaviour, i.e. the "extra" Text bindings are activated ::ntext::classicMouseSelect o 0 - (default value) selects Ntext behaviour, i.e. the anchor point for mouse selection operations is moved by keyboard navigation o 1 - selects classic Text behaviour ::ntext::overwrite o 0 - (initial value) text typed at the keyboard is inserted into the widget o 1 - text typed at the keyboard overwrites text already in the widget o The value is toggled by the Insert key. EXAMPLE
To use Ntext but keep classic Text 's variable-anchor feature: package require ntext text .t set ::ntext::classicAnchor 1 bindtags .t {.t Ntext . all} SEE ALSO
bindtags, ntext, ntextIndent, text KEYWORDS
bindtags, text ntext 0.81 ntextBindings(3tk)
All times are GMT -4. The time now is 07:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy