hello everyone,
this is my first time posting here so be nice ;-)
I am a bit new at unix scripting and have basically been hacking other peoples scripts to get them to do what I need. I have now hit a bit of a stop. This problem is very basic but I can't just seem to figure out how to get... (1 Reply)
I wish to replace values of specific parameters in an input file for batch runs of a java code. It's essentially a nested for-loop sorta like this:
valuearray1 contains values for param1
valuearray2 contains values for param2
for (all values in valuearray1)
go into specific position in... (2 Replies)
Hi Guys I have a question about filling up an array
I have a file called USER_FILE.txt
it contains the following:
Real Name:Thomas A Username:THOMAS_A
Real Name:Thomas B Username:THOMAS_B
Real Name:Thomas C Username:THOMAS_C
Real Name:Thomas D Username:THOMAS_D
Real Name:Thomas E... (8 Replies)
Hi,
I have an xml file which will be edited by the user.
I would like to get input from user and insert that at line 40 of the xml file.
PLease can some one help me to know how to insert the text at specified line using shell script. (6 Replies)
Hello All,
I'm attempting to use a text file as input to a specific field in a command. Below is the command...
Typically it looks like this
ans_dump testzone.com channel=dnsw32 | grep AAAA
I have about 500 zones I want to check... how do I use my text file as input where the zone name... (2 Replies)
I need to take a text file that holds a bunch of data and run each the stuff in it as an input for the program.
the file would hold stuff like this:
thing1.awesomesite.com 80 123.456
thing2.awesomesite.com 80 789.098
thing3.awesomesite.com 80 765.432
...
Now I already know the... (1 Reply)
Hi,
I am trying to populate an array with data from a text file. I have a working method using awk but it is too slow and inefficent. See below.
The text file has 70,000 lines. As awk is a line editor it reads each line of the file until it gets to the required line and then processes it.... (3 Replies)
In the attached bash file I am trying to add a block of code to add2text that will copy the input from match to a text file (file.txt).
For example, if from the menu choice 1 is select the user is asked for the id.... lets say that is 12345, after that id is matched and converted can it be added... (22 Replies)
Hello,
I have a file called COMPLIST as follows that contains 4 digit numbers.0002
0003
0010
0013
0015
0016
0022
0023
0024
0025
0027
0030
0031
0032
0033
0035
0038
0041 (3 Replies)
Discussion started by: sph90457
3 Replies
LEARN ABOUT OSF1
xmbdrawtext
XmbDrawText(3X11)XmbDrawText(3X11)NAME
XmbDrawText, XwcDrawText - draw text using multiple font sets
SYNOPSIS
void XmbDrawText(display, d, gc, x, y, items, nitems)
Display *display;
Drawable d;
GC gc;
int x, y;
XmbTextItem *items;
int nitems;
void XwcDrawText(display, d, gc, x, y, items, nitems)
Display *display;
Drawable d;
GC gc;
int x, y;
XwcTextItem *items;
int nitems;
ARGUMENTS
Specifies the drawable. Specifies the connection to the X server. Specifies the GC. Specifies an array of text items. Specifies the
number of text items in the array. Specify the x and y coordinates.
DESCRIPTION
The XmbDrawText and XwcDrawText functions allow complex spacing and font set shifts between text strings. Each text item is processed in
turn, with the origin of a text element advanced in the primary draw direction by the escapement of the previous text item. A text item
delta specifies an additional escapement of the text item drawing origin in the primary draw direction. A font_set member other than None
in an item causes the font set to be used for this and subsequent text items in the text_items list. Leading text items with a font_set
member set to None will not be drawn.
XmbDrawText and XwcDrawText do not perform any context-dependent rendering between text segments. Clients may compute the drawing metrics
by passing each text segment to XmbTextExtents and XwcTextExtents or XmbTextPerCharExtents and XwcTextPerCharExtents. When the XFontSet
has missing charsets, each unavailable character is drawn with the default string returned by XCreateFontSet. The behavior for an invalid
codepoint is undefined.
STRUCTURES
The XmbTextItem structure contains:
typedef struct {
char *chars; /* pointer to string */
int nchars; /* number of bytes */
int delta; /* pixel delta between strings */
XFontSet font_set; /* fonts, None means do not change */ } XmbTextItem;
The XwcTextItem structure contains:
typedef struct {
wchar_t *chars; /* pointer to wide char string */
int nchars; /* number of wide characters */
int delta; /* pixel delta between strings */
XFontSet font_set; /* fonts, None means do not change */ } XwcTextItem;
SEE ALSO XDrawImageString(3X11), XDrawString(3X11), XDrawText(3X11), XmbDrawImageString(3X11), XmbDrawString(3X11)
Xlib -- C Language X Interface
XmbDrawText(3X11)