08-03-2012
That's because paste functionality works differently in X11. It's not quite the same as the usual clipboard type of copy-paste, there's contexts and such which usually don't come into the usual copy-paste you see in Windows and the like. Usually, what gets selected gets copied, without a buffer -- if nothing is currently selected anywhere, there's nothing to paste. Quite different from how copy-paste works these days, and you can configure how/if it buffers these days, but that legacy is still there. Not the same, uses different mechanisms. Which is why OSX's own X11 server has its own, independent way to paste inside X11 applications. You can even configure how the X11 server treats key or mouse combinations for pasting.
For details, I refer you to my posts earlier in this thread.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello, I'm absolutely new to this world... but I've a problem with a terminal connected via PuTTY (or Termlite) to an AIX 5.1 application.
The problem: I need to paste from clipboard a text containing both input text strings and special keys as ESC, Arrows and so on, to execute in the AIX... (1 Reply)
Discussion started by: Daniele11
1 Replies
2. Shell Programming and Scripting
I have 2 text files, both have one simple, single column. The 2 files might be the same length, or might not, and if not, it's unknown which one would be longer.
For this example, file1 is longer:
---file1
Joe
Bob
Mary
Sally
Fred
Elmer
David
---file2
Tomato
House
Car... (3 Replies)
Discussion started by: cajunfries
3 Replies
3. Shell Programming and Scripting
Pls help me on this. I have to 2 files like shown below:
File 1
TAIJM
AXPKIM
BEMGW
File 2
PXMPA
JYGE
IMJP
What i want to do is to paste both file to a new file on thir format:
File 3
TAIJM PXMPA
AXPKIM JYGE
BEMGW IMJP
I tried cat and print, but it doesn't work. Cn... (6 Replies)
Discussion started by: kingpeejay
6 Replies
4. Solaris
Hello,
Can anybody please tell me how we can copy and paste text from a word document into a text file that we are editing in vi? Is it possible to do that while we are editing the text file in vi in insert mode?
Thanks, (3 Replies)
Discussion started by: Pouchie1
3 Replies
5. Shell Programming and Scripting
I have this text file with a very large number of columns (10,000+) and I want to move the first column to the position of the six column so that the text file looks like this:
Before cutting and pasting
ID Family Mother Father Trait Phenotype
aaa bbb ... (5 Replies)
Discussion started by: evelibertine
5 Replies
6. Shell Programming and Scripting
Hello Guys,
I know the command echo " " > filenamehere ; would erase everything in the document. Can the same be done, to paste words below certain text?
For example, lets say i want to paste a line below the line Server name: in apache.conf . What should be added in the script? (8 Replies)
Discussion started by: xxxx
8 Replies
7. Shell Programming and Scripting
Hello ppl
I have a requirement to split (cut in unix) a file (A.txt) which is a pipe delimited file into A1.txt and A2.txt
Now I have to join (paste in unix) this A2.txt with external file A3.txt to form
output file A4.txt which should be CSV (comma separated file) so that third party can... (25 Replies)
Discussion started by: etldev
25 Replies
8. Shell Programming and Scripting
I have a really big XML file. I need copy the value of one tag inside another one tag. I try to publish one example.
<channel update="i" site="merge-xmltv" site_id="" xmltv_id="Rai 1">Rai 1</channel>
<channel update="i" site="merge-xmltv" site_id="" xmltv_id="Rai 1 +2HD">Rai 1... (6 Replies)
Discussion started by: Tapiocapioca
6 Replies
9. Shell Programming and Scripting
Hi I have a text file with lines beginning with 71303, 71403, 71602,
I need to copy the 10 digit text at position 30 on lines beginning with 71303 (5500011446) to position 99 on every line beginning with 71602 (see example below),
There may be many 71303 lines but I need the text copying to... (2 Replies)
Discussion started by: firefox2k2
2 Replies
10. Shell Programming and Scripting
hi all,
trying this using shell/bash with sed/awk/grep
I have two files, one containing one column, the other containing multiple columns (comma delimited).
file1.txt
abc12345
def12345
ghi54321
...
file2.txt
abc1,text1,texta
abc,text2,textb
def123,text3,textc
gh,text4,textd... (6 Replies)
Discussion started by: shogun1970
6 Replies
LEARN ABOUT DEBIAN
soxtclipboard
SoXtClipboard(3IV)() SoXtClipboard(3IV)()
NAME
SoXtClipboard -- Provides Inventor copy/paste support
INHERITS FROM
SoXtClipboard
SYNOPSIS
#include <Inventor/Xt/SoXtClipboard.h>
typedef void SoXtClipboardPasteCB(void *userData, SoPathList *pathList)
typedef void SoXtClipboardImportCB(void *userData, Atom dataType, void *data, uint32_t numBytes)
#define _XA_CLIPBOARD_ ((Atom) 0)
Methods from class SoXtClipboard:
SoXtClipboard(Widget w, Atom selectionAtom = _XA_CLIPBOARD_)
~SoXtClipboard()
void copy(SoNode *node, Time eventTime)
void copy(SoPath *path, Time eventTime)
void copy(SoPathList *pathList, Time eventTime)
void copy(Atom dataType, void *data, uint32_t numBytes, Time eventTime)
void paste(Time eventTime, SoXtClipboardPasteCB *pasteDoneFunc, void *userData = NULL)
void addPasteInterest(Atom dataType, SoXtClipboardImportCB *pasteImportFunc, void *userData = NULL)
DESCRIPTION
This class manages data transfers for copy and paste. Transfers may occur within the same process, or between different processes. This
uses the Xt selection mechanism to implement the ICCCM protocol for the transfer of data.
METHODS
SoXtClipboard(Widget w, Atom selectionAtom = _XA_CLIPBOARD_)
~SoXtClipboard()
Constructor and destructor. w is the Xt widget for which this clipboard acts as an agent. selectionAtom is the X selection through which
data should be transferred. For quick data transfers, this should be XA_PRIMARY. The default is _XA_CLIPBOARD_ which uses the X clip-
board selection.
void copy(SoNode *node, Time eventTime)
void copy(SoPath *path, Time eventTime)
void copy(SoPathList *pathList, Time eventTime)
This copies the passed scene graph object, and tells the X server that the clipboard now owns the selection which was specified by
selectionAtom in the constructor. When a paste happens (in this window, another window, or another process), the X server will ask this
clipboard for the data it copied here. The eventTime should be the time found in the X event structure which triggered the copy opera-
tion, and is used to ensure synchronization of copy and paste requests. Data targets supported for export are INVENTOR_2_1, INVEN-
TOR_2_1_FILE, INVENTOR_2_0, INVENTOR_2_0_FILE, VRML_1_0, VRML_1_0_FILE. Also exported for backwards compatibility are INVENTOR and
INVENTOR_FILE, which are equivalent to INVENTOR_2_0 and INVENTOR_2_0_FILE.
void copy(Atom dataType, void *data, uint32_t numBytes, Time eventTime)
This behaves like the above copy routines, but the data can be in any format as specified by dataType.
void paste(Time eventTime, SoXtClipboardPasteCB *pasteDoneFunc, void *userData = NULL)
This makes a request to the X server for data to paste from the selection atom specified in the constructor (selectionAtom), then
returns. When the data is retrieved from the selection owner, the pasteDoneFunc callback is invoked. The newly pasted data is passed as
the callback function's pathList argument (an SoPathList). Data targets supported for import are INVENTOR_2_1, INVENTOR_2_1_FILE, INVEN-
TOR_2_0, INVENTOR_2_0_FILE, VRML_1_0, VRML_1_0_FILE. Also imported for backwards compatibility are INVENTOR and INVENTOR_FILE, which
are equivalent to INVENTOR_2_0 and INVENTOR_2_0_FILE.
void addPasteInterest(Atom dataType, SoXtClipboardImportCB *pasteImportFunc, void *userData = NULL)
This extends the paste interest to recognize an additional target as specified by dataType. It can be called multiple times to register
interest in more than one extension. The pasteImportFunc will be called when data of the registered type is pasted. Passing NULL as the
pasteImportFunc will remove paste interest for that data type (even if the data type is one of the defaults). This should be called
before paste() so that paste() will accept pastes of data types that have been registered here. A dataType atom can be created with
XmInternAtom, e.g.: XmInternAtom(XtDisplay(widget),"INVENTOR",False);
SEE ALSO
SoSelection, SoByteStream, SoXt, X Selections
SoXtClipboard(3IV)()