09-05-2014
Before anything else: PLEASE REMOVE the poll - it is completely unnecessary, doesn't help anyone and the only thing it does is making you look clueless and desperate.
Second, and this might answer your poll question: have a look at the man page of xterm and you will find the "-fg" option for the foreground colour, the "-bg" option for the background colour, the "-fn" option for the font, the "-cr" option for the cursor colour, and some more. You can also put defaults for these (and more) values into the repective rc-files of your windowmanager, you can use arbitrary X-resource-strings with the "-xrm" option and a lot things more.
Is it easy or difficult to consult a man page? Ask yourself.
I hope this helps.
bakunin
10 More Discussions You Might Find Interesting
1. UNIX Desktop Questions & Answers
Is there a way to resize x clients after they're started either on the command line or programmatically?
I'm using Cygwin and typically start my root window, wm, and four xterms. By the end of the day they're all over the place with different sizes. I'd like to be able to enter a single command... (0 Replies)
Discussion started by: gctaylor
0 Replies
2. Shell Programming and Scripting
Hello there....unix users :)
I hope you can help me with this:
I need open a doc file or xls files and work this files whit a bash script.
For example: Open a doc file and copy information from a txt file in this doc file or xls file.
Is it possible?
Sorry for my english...I'm chilean... (3 Replies)
Discussion started by: bobbasystem
3 Replies
3. Shell Programming and Scripting
Hi, I need some help with sending commands to multiple xterms. What I do is ssh -Y to a remote box, and then open up 4 shells (csh) and on each one I run a different program in sequence -- one of them has 2, the first of which goes into the background and after you hit "enter" or "return" you get... (0 Replies)
Discussion started by: rmoriarty
0 Replies
4. Programming
Hi.
I have two text files(tables) which include some information and I want to make some query codes using them.
First of all, I want to create bash script that read this two tables, create/open database and insert data from files into database.
#!/bin/bash
while read line; do
... (1 Reply)
Discussion started by: rlaxodus
1 Replies
5. Shell Programming and Scripting
#!/bin/bash
# permutation_combination.sh
# Version: 2.0
# Author : YongYe <complex.invoke@gmail.com>
arg0=-1
argv=${3}
number=${2}
eval ary=({1..${1}})
length=${#ary}
percom(){ nsloop i ${1} number${2} ${3} ${4} ${5}; }
invoke(){ echo $(percom ${argu} nsloop -1) prtcom $(percom... (1 Reply)
Discussion started by: complex.invoke
1 Replies
6. Shell Programming and Scripting
Hi All
I am a new in scripting language and I would like help for you guys
I would like to create a file named constant.h and search into all files *.m in specific directory for a reg-exp @"LBL_]+" exp: @"LBL_75847" , and write those matchs to constant.h if there are not written (no... (15 Replies)
Discussion started by: molwiko
15 Replies
7. UNIX for Advanced & Expert Users
Hello,
I'm attempting to open multiple xterms and run a command as an SAP user via sudo using PSSH. So far, I'm able to run PSSH to a file of servers with no check for keys, open every xterm in to the servers in the file list, and SUDO to the SAP(ADM) user, but it won't do anything else... (11 Replies)
Discussion started by: icemanj
11 Replies
8. Shell Programming and Scripting
I'm new to utilities like socat and netcat and I'm not clear if they will do what I need.
I have a "compileDeployStartWebServer.sh" script and a "StartBrowser.sh" script that are started by emacs/elisp at the same time in two different processes.
I'm using Cygwin bash on Windows 10.
My... (3 Replies)
Discussion started by: siegfried
3 Replies
9. Shell Programming and Scripting
Hi I am having a code as stated below
module abcd( a , b , c ,da , fa, na , ta , ma , ra ,
ta, la , pa );
input a , b, da ,fa , na , ta , ma;
output c , ra ,ta ,
la ,pa ;
wire a , b , da , fa ,na ,
ta , ma;
// MBIST Structures... (1 Reply)
Discussion started by: kshitij
1 Replies
10. UNIX for Beginners Questions & Answers
I am having one problem as stated below
Problem Description
I am having some "sv" extension files , I am using "glob" to extract the matching files , Now in these matching files , I need to split them and extract the elements and create different lists.
For example
set files
This... (1 Reply)
Discussion started by: kshitij
1 Replies
LEARN ABOUT OSF1
ppmlabel
ppmlabel(1) General Commands Manual ppmlabel(1)
NAME
ppmlabel - add text to a portable pixmap
SYNOPSIS
ppmlabel [-angle angle] [-background transparent | colour] [-colour colour] [-file filename] [-size textsize] [-text 'text string'] [-x
column] [-y row] ... [ppmfile]
DESCRIPTION
ppmlabel uses the text drawing facilities of ppmdraw to add text to a portable pixmap. The location, size, baseline angle, colour of the
text and background colour (if any) are controlled by command line arguments. The text can be specified on the command line or read from
files. Any number of separate text strings can be added by one invocation of ppmlabel, limited only by the maximum length of the command
line.
If no ppmfile is specified, ppmdraw reads its input pixmap from standard input.
OPTIONS
The arguments on the ppmlabel command line are not options in the strict sense; they are commands which control the placement and appear-
ance of the text being added to the input pixmap. They are executed left to right, and any number of arguments may appear.
All flags can be abbreviated to their shortest unique prefix.
-angle angle
Sets the angle of the baseline of subsequent text. angle is specified as an integral number of degrees, measured counterclock-
wise from the row axis of the pixmap.
-background transparent | colour
If the argument is ``transparent'', text is drawn over the existing pixels in the pixmap. If a colour is given (see the -colour
switch below for information on how to specify colours), rectangles enclosing subsequent text are filled with that colour.
-colour colour
Sets the colour for subsequent text. The colour can be specified in five ways:
o A name, assuming that a pointer to an X11-style colour names file was compiled in.
o An X11-style hexadecimal specifier: rgb:r/g/b, where r g and b are each 1- to 4-digit hexadecimal numbers.
o An X11-style decimal specifier: rgbi:r/g/b, where r g and b are floating point numbers between 0 and 1.
o For backwards compatibility, an old-X11-style hexadecimal number: #rgb, #rrggbb, #rrrgggbbb, or #rrrrggggbbbb.
o For backwards compatibility, a triplet of numbers separated by commas: r,g,b, where r g and b are floating point numbers
between 0 and 1. (This style was added before MIT came up with the similar rgbi style.)
-file filename
Reads text from the file filename and draws it on successive lines.
-size textsize
Sets the height of the tallest characters above the baseline to textsize pixels.
-text 'text string'
Draws the given text string (which must be quoted if it contains spaces). The location for subsequent text is advanced by 1.75
times the current textsize, which allows drawing multiple lines of text in a reasonable manner without specifying the position of
each line.
-x column Sets the column at which subsequent text will be left justified. Depending on the shape of the first character, the actual text
may begin a few pixels to the right of this point.
-y row Sets the row which will form the baseline of subsequent text. Characters with descenders, such as ``y'', will extend below this
line.
BUGS
Text strings are restricted to 7 bit ASCII. The text font used by ppmdraw doesn't include definitions for 8 bit ISO 8859/1 characters.
When drawing multiple lines of text with a non-transparent background, it should probably fill the space between the lines with the back-
ground colour. This is tricky to get right when the text is rotated to a non-orthogonal angle.
The -size, -x, and -y options MUST precede the -text option specifying the string they apply to, or they will be silently ignored in favor
of the defaults.
SEE ALSO
ppmmake(1), ppm(5)
AUTHOR
Copyright (C) 1995 by John Walker (kelvin@fourmilab.ch)
WWW home page: http://www.fourmilab.ch/
Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted,
without any conditions or restrictions. This software is provided ``as is'' without express or implied warranty.
14 June 1995 ppmlabel(1)