Sponsored Content
Full Discussion: Cut, Copy and Paste with X
Special Forums UNIX Desktop Questions & Answers Cut, Copy and Paste with X Post 18311 by auswipe on Wednesday 27th of March 2002 12:09:15 AM
Old 03-27-2002
I have found the mouse support for cut, copy and paste to be spotty but it seems to work for the most part. There are some more modern apps that support the ^C/^V/^X of Win32.

For example, I can copy with ^C from gnumeric and ^V paste into StarOffice, etc. Star Office didn't like the middle button for paste. When I hit the middle button, it allows me to use the mouse to scroll positions.

Xterm brought up various menu options with the middle button instead of paste; But pasting can be done via the menu.

I was able to use both the mouse and ^C/^V/^X in Opera for cut and paste operations. I reckon it is just a trial and error process. But now I have an idea of what to try when I need to cut and paste from one app into another (and that's important stuff!)
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Trans application cut, copy and paste? Drag and Drop

I'm using Red Hat 8 and I'm really fustrated with cut and paste. When I am viewing a URL in emacs I cannot paste it into the browser address window. Yesterday, I tried VI (or was it VIM?) and it recognized it as a URL and allowed me to right mouse click on it and brought up the browser with... (1 Reply)
Discussion started by: siegfried
1 Replies

2. Shell Programming and Scripting

Cut Paste and Insert Help

Hello I have a very large file where say each line is made up of 80 characters. I want to cut the characters from 20-30 and 50-60 from each line and then insert a delimiter between them (# or | etc). eg input file 000000000131.12.20990000590425246363375670011200140406... (5 Replies)
Discussion started by: PradeepRed
5 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. Shell Programming and Scripting

cut and paste using awk

Hi i need a favour i have a file which has some trillions of records. The file is like this 11111000000000192831840914000000000000000000000000000 45789899090000000000000000011111111111111111111111111 I want to cut specific postions in each line like cut1-3 and assisgn it to a variable and... (5 Replies)
Discussion started by: richa2.m
5 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. 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

8. Shell Programming and Scripting

Problem in Cut and paste

Hi, I have a file like this --> Consider z as space #cat filename ABC <!--Nzzzzz--> <!--RESUMO--> EFG XYZ <!--Nzzzzz--> <!--RESUMO--> I need to cut the <!--RESUMO--> part and paste it to the previous line so that the file will look like this--> ABC <!--Nzzzzz--><!--RESUMO-->... (4 Replies)
Discussion started by: samsonata
4 Replies

9. Shell Programming and Scripting

Issue with cut and paste

let i have A file and B file A has contains 4 fields as below ---------------- f1 f2 f3 f4 B file consists of 5 fields as below -------------------- f5 f6 f7 f8 f9 need to display as below output: f5 f1 f3 f8 f9 (2 Replies)
Discussion started by: ANSHUMAN1983
2 Replies

10. Shell Programming and Scripting

Problem in cut or paste

Hello, I have some problem in cut or paste command for my text data. Input1.txt : I use cut command : cut -d ' ' -f1 Input1.txt > result.txt result.txt : Then, I use paste command to merge result.txt. paste -d ' ' result.txt Input1.txt > output.txt output.txt showed : I use cut... (1 Reply)
Discussion started by: awil
1 Replies
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)()
All times are GMT -4. The time now is 04:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy