08-29-2005
I have setup a pxe linux server. I am trying to edit the boot.msg file. I want to customize it using various colors. I need to be able to put a control charcter followed by the color code. For example:
#vi boot.msg
^L
^O0aWelcome to the Pxe Linux Installer^00a
Note: The would display "Welcome to the Pxe Linux Installer" in red text.
The color codes are in HEX. I am having trouble nserting the color code
after the control caret.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
using c-shell, does anyone know how to send control characters to the printer before the job?
I need to set a printer to print in condensed mode
HELP (1 Reply)
Discussion started by: mglinsk
1 Replies
2. Shell Programming and Scripting
Hi ,
the fog is fulling my brain after holidays , somebody can help me ?
I have a file in input like that :
toto
tata
tutu
and trying with awk to insert the compete file string as :
/dir1/dir2/toto
/dir1/dir2/tata
/dir1/dir2/tutu
i used to write :
awk 'BEGIN {FS="\\"} {print... (4 Replies)
Discussion started by: Nicol
4 Replies
3. UNIX for Dummies Questions & Answers
Hi there,
I want to open a cash drawer remotely. The cash drawer is commanded by a printer.
I need to connect to the cash drawer which is connected over a network (and shared) and simply send a sequence of five ASCII commands (see http://pages.prodigy.net/daleharris/popopen2.htm) to a... (5 Replies)
Discussion started by: Friğrik
5 Replies
4. Shell Programming and Scripting
Hello,
any trick to print line number and last two characters of each line ? (4 Replies)
Discussion started by: Bashar
4 Replies
5. UNIX for Dummies Questions & Answers
Hi
I have a password stored in a file (which is a user input)
The password is having the special character $
say the password is pw$ord and is stored in the file pw_note
I am using the following statement to store the passowrd in a
variable
$schema_pwd = `cat $dir/pwd_note` ;
Now if i print... (4 Replies)
Discussion started by: ssuresh1999
4 Replies
6. UNIX for Dummies Questions & Answers
How to add control characters at the end of each line in a file?
Can anyone help me with this?
Thanks,
Shobana (2 Replies)
Discussion started by: Shobana_s
2 Replies
7. Linux
Hi,
I have an csv file and there are some non printable characters(extended ascii) so I am trying to create a clean copy of the csv file . I am using
this command:
tr -cd "" < /opt/informatica/PowerCenter8.6.0/server/infa_shared/SrcFiles/ThirdParty/locations.csv > ... (4 Replies)
Discussion started by: gerkus
4 Replies
8. UNIX for Dummies Questions & Answers
hi
i have a file that contains the data like this
12345
12453
8990998987
0989876656
12345678
12344
133678999
12345677
i should insert "+" and "-" signs for each line i,e.,
+ 12345
- 12453
+ 8990998987
- 0989876656
+ 12345678
- 12344 (2 Replies)
Discussion started by: anurupa777
2 Replies
9. Shell Programming and Scripting
How do I remove the printer escape sequence, the first 5 characters, that occurs on every 33rd line in a file, see hex dump of line 1.
0000 1e 00 00 00 00 0a 0a 0a 20 0a 20 20 20 20 20 20 ....
0010 20 20 20 20 20 20 20 20 20 20 0a 42 49 4c 4c 20
Thanks, (2 Replies)
Discussion started by: jgt
2 Replies
10. UNIX for Beginners Questions & Answers
I would like to insert n number of characters at the beginning of each line that starts with a given character. If possible, I would be most appreciative for a sed or awk solution.
Given the data below, I would like to be able to insert either 125 spaces or 125 "-" at the beginning of every line... (6 Replies)
Discussion started by: jvoot
6 Replies
LEARN ABOUT SUNOS
jprconv
jprconv(1) User Commands jprconv(1)
NAME
jprconv - Filter for printing Japanese text on a dot-matrix Kanji printer or Japanese language page printer
SYNOPSIS
jprconv [-T terminfo] [-r ]
/usr/lib/lp/text/jprconv
AVAILABILITY
SUNWjfpu
DESCRIPTION
jprconv is a filter for printing Japanese text on a dot-matrix Kanji printer (EPSON VP-5085 or NEC PC-PR201) or Japanese language page
printer (Canon LASERSHOT). Control codes for each printer are as follows:
+-----------------------+-----------------------------------+
|Database |Control code |
|EPSON VP-5085 |ESC/P24-J84 of EPSON ESC/P |
|NEC PR201 |NEC 201PL |
|Canon LASERSHOT |LIPS-complied control code |
+-----------------------+-----------------------------------+
If the above control codes are supported, Japanese text can be printed on another printer.
jprconv reads Japanese characters from the standard input, converts them to each control code, and writes to the standard output. If the
input character code includes any user-defined characters, JIS X 0212, IBM Extended characters, or NEC-selective IBM Extended characters,
these fonts are also printed. For the other characters, fonts installed on the printer are used.
You can use sdtudctool to define user-specific characters (see sdtudctool(1)). To print JIS X 0212, IBM Extended characters, or NEC-selec-
tive IBM Extended characters, the SUNWjcs3f package is also needed.
OPTIONS
-T Specifies to use terminfo database. Any one of the following must be spefified.
canon-ls-408 In case of LIPS format
nec-pr201 In case of NEC 201PL format
epson-vp5085 In case of ESC/P24-J84 format
-r Does not convert NL to CR-NL when printing. By default it is converted.
EXAMPLES
To print file1 in the ESC/P24-J84 format, type:
example% jprconv -T epson-vp5085 < file1
ENVIRONMENT VARIABLES
To run this command, the locale must be set to ja, ja_JP.PCK or ja_JP.UTF-8.
FILES
/usr/lib/lp/text/jprconv.conf
/usr/share/lib/terminfo/e/epson-vp5085
/usr/share/lib/terminfo/n/nec-pr201
/usr/share/lib/terminfo/c/canon-ls-a408
SEE ALSO
jtops(1), jpostprint(1), sdtudctool(1), lpfilter(1M)
Japanese Environment User's Guide
NOTES
In general, it is not necessary to use the jprconv because jprconv is used as a filter on the printer server side. For the setting on the
printer server side, see Japanese Environment User's Guide.
Only Japanese characters are printable in the ja_JP.UTF-8 locale.
SunOS 5.10 10 Jan 2003 jprconv(1)