Sponsored Content
Full Discussion: Paste text into vi file?
Operating Systems OS X (Apple) Paste text into vi file? Post 302681553 by Corona688 on Friday 3rd of August 2012 02:45:38 PM
Old 08-03-2012
You're not using X11 at all, then. OSX's usual graphical system has nothing to do with X11.

If you needed to middle-click, I think OSX has ways to emulate that, but if you're not using X11 that's neither here nor there.

paste should be one of the options under 'edit' across the top of the screen.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Copy/Paste text as commands in AIX

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

How to Merge / combine / join / paste 2 text files side-by-side

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

Paste content of a file to another file and make it as columned

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

Copy and paste text from a word document into a txt file in vi

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

Copy and Paste Columns in a Tab-Limited Text file

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

How to paste lines below certain text (Script)

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

How to cut a pipe delimited file and paste it with another file to form a comma separated outputfile

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

Copy and paste text inside a xml file

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

Bash copy and paste text in file from one position to another

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

Match text to lines in a file, iterate backwards until text or text substring matches, print to file

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
XmGetPixmapByDepth(3X)													    XmGetPixmapByDepth(3X)

NAME
XmGetPixmapByDepth - A pixmap caching function that generates a pixmap, stores it in a pixmap cache, and returns the pixmap SYNOPSIS
#include <Xm/Xm.h> Pixmap XmGetPixmapByDepth (screen, image_name, foreground, background, depth) Screen *screen; char *image_name; Pixel foreground; Pixel background; int depth; DESCRIPTION
XmGetPixmapByDepth uses the parameter data to perform a lookup in the pixmap cache to see if a pixmap has already been generated that matches the data. If one is found, a reference count is incremented and the pixmap is returned. Applications should use XmDestroyPixmap when the pixmap is no longer needed. If a matching pixmap is not found, image_name is used to perform a lookup in the image cache. If an image is found, it is used to generate the pixmap, which is then cached and returned. If an image is not found, image_name is used as a filename, and a search is made for an X10 or X11 bitmap file. If it is found, the file is read, converted into an image, and cached in the image cache. The image is then used to generate a pixmap, which is cached and returned. If image_name has a leading slash (/), it specifies a full pathname, and XmGetPixmapByDepth opens the file as specified. Otherwise, image_name specifies a filename. In this case XmGetPixmapByDepth looks for the file along a search path specified by the XBMLANGPATH envi- ronment variable or by a default search path, which varies depending on whether or not the XAPPLRESDIR environment variable is set. The XBMLANGPATH environment variable specifies a search path for X bitmap files. It can contain the substitution field %B, where the image_name argument to XmGetPixmapByDepth is substituted for %B. It can also contain the substitution fields accepted by XtResolvePathname. The substitution field %T is always mapped to bitmaps, and %S is always mapped to NULL. If XBMLANGPATH is not set, but the environment variable XAPPLRESDIR is set, the following pathnames are searched: %B $XAPPLRESDIR/%L/bitmaps/%N/%B $XAPPLRESDIR/%l/bitmaps/%N/%B $XAPPLRESDIR/bitmaps/%N/%B $XAPPLRESDIR/%L/bitmaps/%B $XAPPLRESDIR/%l/bitmaps/%B $XAPPLRESDIR/bitmaps/%B $HOME/bitmaps/%B $HOME/%B /usr/lib/X11/%L/bitmaps/%N/%B /usr/lib/X11/%l/bitmaps/%N/%B /usr/lib/X11/bitmaps/%N/%B /usr/lib/X11/%L/bitmaps/%B /usr/lib/X11/%l/bitmaps/%B /usr/lib/X11/bitmaps/%B /usr/include/X11/bitmaps/%B If neither XBMLANGPATH nor XAPPLRESDIR is set, the following pathnames are searched: %B $HOME/%L/bitmaps/%N/%B $HOME/%l/bitmaps/%N/%B $HOME/bitmaps/%N/%B $HOME/%L/bitmaps/%B $HOME/%l/bitmaps/%B $HOME/bitmaps/%B $HOME/%B /usr/lib/X11/%L/bitmaps/%N/%B /usr/lib/X11/%l/bitmaps/%N/%B /usr/lib/X11/bitmaps/%N/%B /usr/lib/X11/%L/bitmaps/%B /usr/lib/X11/%l/bitmaps/%B /usr/lib/X11/bitmaps/%B /usr/include/X11/bitmaps/%B These paths are defaults that vendors may change. For example, a vendor may use different directories for /usr/lib/X11 and /usr/include/X11. The following substitutions are used in these paths: The image name, from the image_name argument The class name of the application The display's language string The language component of the display's language string Parameter descriptions are listed below: Specifies the display screen on which the pixmap is to be drawn Specifies the name of the image to be used to generate the pixmap Combines the image with the foreground color to create the pixmap if the image referenced is a bit-per-pixel image Combines the image with the background color to create the pixmap if the image referenced is a bit-per-pixel image Specifies the depth of the pixmap RETURN VALUE
Returns a pixmap when successful; returns XmUNSPECIFIED_PIXMAP if the image corresponding to image_name cannot be found. SEE ALSO
XmDestroyPixmap(3X), XmInstallImage(3X), XmUninstallImage(3X) XmGetPixmapByDepth(3X)
All times are GMT -4. The time now is 04:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy