9 More Discussions You Might Find Interesting
1. Solaris
I'm searching a command to copy text to the clipboard.
xclip and xsel are commands which are available on several kind Linux and Unix OS, but is unfortenuately not available on solaris 10.
REF : xpt.sourceforge.net/techdocs/nix/x/general/xwin12-Xclipboard/single/
clipboard of openSolaris is... (9 Replies)
Discussion started by: droopy4u
9 Replies
2. Shell Programming and Scripting
Hello. I've made a simple script which asks the user to input a hash and then runs a command that replaces the variable $hash with what the user inserted. The ting is that when the programm asks for input I can't paste anything there..! any clues?? :wall: (8 Replies)
Discussion started by: louboulos
8 Replies
3. UNIX for Dummies Questions & Answers
hi all,
i am newbie to Unix scripting..
I am writing a script which will have a line of commands, which needs to be copied to clipboard.
Any ideas welcome..
Usage::
I am using the script in this way, The script will have some lines (like below)
export TERM=xterm; cd test_env; TMOUT=0
... (1 Reply)
Discussion started by: gkarthik.gk
1 Replies
4. UNIX for Advanced & Expert Users
Hi,
I can paste what is in the CLIPBOARD but I can't get xterm copy. and in fact I think I'm not able to select well with the cursor (I don't want to use the mouse)...
here is my ~/.Xresources file :
XTerm*highlightSelection: true
XTerm*VT100.translations: #override \n\
None ... (5 Replies)
Discussion started by: xib.be
5 Replies
5. UNIX for Dummies Questions & Answers
input1
15 150
input2
x 10 100
input3
y 20 200
z 34 44
cmd
paste -d "\t" input1 input2 input3 >>output
output (1 Reply)
Discussion started by: repinementer
1 Replies
6. Shell Programming and Scripting
Hi.
I have an interesting problem and i couldn't find out the solution.
I have two variables in which there are a lot of lines finished by \n. I would like to concatenate this two variables into one in this format:
var1var2
var1var2
.
.
.
I could do this simply by command paste but it works... (32 Replies)
Discussion started by: samos
32 Replies
7. Shell Programming and Scripting
when I do a df -k for a particular mount i get the result like this
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/ 4128448 3527496 391240 91% /
I need to extract the value 91 from this and use it in my script in an if condition. How will i do it Please advice. (8 Replies)
Discussion started by: codeman007
8 Replies
8. UNIX for Dummies Questions & Answers
For examples, I have typed 4 commands in the command prompt:
ls -la
rm -rf /home/user1
du -k /home
find . -name "abc.out" -print
And now I want to retrieve the command which begin with letter "r" (i.e. rm -rf /home/user1), what can I do? (5 Replies)
Discussion started by: laum
5 Replies
9. UNIX for Advanced & Expert Users
I wonder if any body can help me with a command i am struggling with. I have a file with around 400 lines in, in a program i have it pulls out each line at a time so that data from the line can be cross referenced with another file. If it finds a match it pulls out a ocde from the second file, this... (5 Replies)
Discussion started by: mariner
5 Replies
DwtBeginCopyToClipboard(3Dwt) DwtBeginCopyToClipboard(3Dwt)
Name
DwtBeginCopyToClipboard - Sets up storage and data structures to receive clipboard data.
Syntax
int DwtBeginCopyToClipboard(display, window, clip_label,
widget, callback, item_id)
Display *display;
Window window;
DwtCompString clip_label;
Widget widget;
VoidProc callback;
long *item_id;
Arguments
display Specifies a pointer to the Display structure that was returned in a previous call to XOpenDisplay. For information on XOpenDis-
play and the Display structure, see the Guide to the Xlib Library: C Language Binding.
window Specifies the window ID that relates the application window to the clipboard. The same application instance should pass the same
window ID to each clipboard function that it calls.
clip_label
Specifies the label to be associated with the data item. This argument is used to identify the data item, for example, in a
clipboard viewer. An example of a label is the name of the application that places the data in the clipboard.
widget Specifies the ID of the widget that will receive messages requesting data previously passed by name. This argument must be
present in order to pass data by name. Any valid widget ID in your application can be used. All message handling is done by the
cut and paste functions.
callback Specifies the address of the callback function that is called when the clipboard needs data that was originally passed by name.
This is also the callback to receive the DELETE message for items that were originally passed by name. This argument must be
present in order to pass data by name.
item_id Specifies the number assigned to this data item. The application uses this number in calls to DwtCopyToClipboard, DwtEndCopyTo-
Clipboard, and DwtCancelCopyToClipboard.
Description
The DwtBeginCopyToClipboard function sets up storage and data structures to receive clipboard data. An application calls DwtBeginCopyTo-
Clipboard during a cut or copy operation. The data item that these structures receive then becomes the next-paste item in the clipboard.
The widget and callback arguments must be present in order to pass data by name. The callback format is as follows:
function name(widget, data_id, private_id, reason)
Widget *widget;
int *data_id;
int *private_id;
int *reason;
widget Specifies the ID of the widget passed to DwtBeginCopyToClipboard.
data_id Specifies the identifying number returned by DwtCopyToClipboard, which identifies the pass-by-name data.
private_id
Specifies the private information passed to DwtCopyToClipboard.
reason Specifies the reason, which is either DwtCRClipboardDataDelete or DwtCRClipboardDataRequest.
Return Values
This function returns one of these status return constants:
ClipboardSuccess The function is success-
ful.
ClipboardLocked The function failed
because the clipboard was
locked by another appli-
cation. The application
can continue to call the
function with the same
parameters until the
clipboard is unlocked.
Optionally, the applica-
tion can ask if the user
wants to keep trying or
to give up on the opera-
tion.
See Also
DwtCopyToClipboard(3Dwt), DwtEndCopyToClipboard(3Dwt), DwtCancelCopyToClipboard(3Dwt), DwtStartCopyToClipboard(3Dwt)
Guide to the XUI Toolkit: C Language Binding
Guide to the XUI Toolkit Intrinsics: C Language Binding
DwtBeginCopyToClipboard(3Dwt)