Sponsored Content
Full Discussion: enscript color
Top Forums Shell Programming and Scripting enscript color Post 302579224 by apmcd47 on Monday 5th of December 2011 07:21:47 AM
Old 12-05-2011
Sorry for the very late posting.
Quote:
Originally Posted by forumbaba
Hi,
I am converting a text file to ps using enscript.
Does anyone know how to print in color?

Here is what I tried:

enscript -ptemp.ps -G -F Souvenir-DemiItalic20 -f Souvenir-DemiItalic20 -E --color file.txt

The color doesn't work
Thanks
If you are using a Linux distribution look in /usr/share/doc/enscript (or possibly /usr/share/enscript-{ver} where {ver} is the version number. You will find a (possibly gzipped) file called README.ESCAPES. Use this to find out how to embed escape sequences into your text file to print in colour.

Andrew
 

2 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Enscript

I'm trying to print a perlscript file from nedit using the enscript command. It reads as follows: enscript -dbigbird -R -G -b"my_perl_script.pl" This is the printer command line when I print from nedit. I also have the language set to perl under preferences. This allows me to view comments... (1 Reply)
Discussion started by: mirzabhai
1 Replies

2. UNIX for Dummies Questions & Answers

How to change the background color in the init 3 mode(not line color)

Hello, I am using RHEL 6.1 on VMware I am searching for a way to change background color (not line by line color wich one can using tput command) basically changing the color of the whole screen to white instead of the default black and changing font color to black and alos would like to... (2 Replies)
Discussion started by: Dexobox
2 Replies
DXmColorMixSetNewColor(3X)												DXmColorMixSetNewColor(3X)

NAME
DXmColorMixSetNewColor - Sets the new color red, green, and blue values in the color mixing widget. SYNOPSIS
void DXmColorMixSetNewColor( DXmColorMixWidget cmw, unsigned short red, unsigned short green, unsigned short blue ); PARAMETERS
The identifier (widget ID) of the color mixing widget. The new color red value. The value is expressed as an X color value (0 to 65535). The new color green value. The value is expressed as an X color value (0 to 65535). The new color blue value. The value is expressed as an X color value (0 to 65535). A complete list of all the X color values available to you is located on your system. To find it, type the following command: % find / -name '*rgb*' -print DESCRIPTION
The DXmColorMixSetNewColor routine allows the application or a user-supplied color mixer subwidget to pass the current color value to the color mixing widget. Note that your application will perform this operation faster if you call this routine instead of the Intrinsic rou- tine XtSetValues. SEE ALSO
DXmColorMixGetNewColor(3X), DXmCreateColorMix(3X), DXmCreateColorMixDialog(3X) DXmColorMixSetNewColor(3X)
All times are GMT -4. The time now is 06:09 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy