Sponsored Content
Operating Systems Solaris Problem in setting up printers Post 302679031 by gull04 on Monday 30th of July 2012 07:57:31 AM
Old 07-30-2012
Hi,

All your page lenght and pitch commands can be changed when you amend the terminfo file for the printer. If you look at the file below you will see the information is pretty easy to read, although you should be carefull what you change.

Code:
su01sa001> cd /usr/share/lib/terminfo
su01sa001> ls
1  2  3  4  5  6  7  8  9  A  B  G  H  M  P  S  a  b  c  d  e  f  g  h  i  j  k  l  m  n  o  p  q  r  s  t  u  v  w  x  y  z
su01sa001> cd e
su01sa001> ls
emots           ep2500+basic    ep2500+low      ep4080          epson2500-80    ergo4000        ex3000
env230          ep2500+color    ep40            ep48            epson2500-hi    esprit          exidy
envision230     ep2500+high     ep4000          epson2500       epson2500-hi80  ethernet        exidy2500
su01sa001> infocmp ep2500+basic
#       Reconstructed via infocmp from file: /usr/share/lib/terminfo/e/ep2500+basic
ep2500+basic,
        cpix,
        cols#136, it#8, lines#66, orc#6, orhi#60, orl#30,
        orvi#180,
        bold=\EG,
        cpi=%?%p1%{10}%=%t^R\EP%e%p1%{12}%=%t^R\EM%e%p1%{20}%=%t^O\EM%e%p1%{17}%=%t^O\EP%;,
        cr=\r,
        csnm=%?%p1%{0}%=%tcharacter_set_1%e%p1%{1}%=%tcharacter_set_2%e%p1%{2}%=%tusa%e%p1%{3}%=%tfrench%e%p1%{4}%=%tgerman%e%p1%{5}%=%tuk%e%p1%{6}%=%tdanish1%e%p1%{7}%=%tswedish%e%p1%{8}%=%titalian%e%p1%{9}%=%tspanish1%e%p1%{10}%=%tjapanese%e%p1%{11}%=%tnorwegian%e%p1%{12}%=%tdanish2%e%p1%{13}%=%tspanish2%e%p1%{14}%=%tlatin_american%;,
        cub1=\b, cud1=\n, cuf1=\s,
        cvr=%?%p1%{0}%>%p1%{256}%<%&%t\E3%p1%c%;, ff=\f,
        ht=\t, is1=^Q^X, is2=\E@\E%0\EO, ritm=\E5, rmso=\EF,
        rmul=\E-0, rshm=\EF, rsubm=\ET, rsupm=\ET, rwidm=\EW0,
        scs=%?%p1%{0}%=%t\E7%e%p1%{1}%=%t\E6%e%p1%{1}%>%p1%{15}%<%&%t\ER%p1%{126}%+%c%;smso=\EE,
        sgr=%?%p1%t\EE%e\EF%;%?%p2%t\E-1%e\E-0%;%?%p6%t\EG%e\EH%;,
        sgr0=\EF\E-0\EH\ET\EW0\E5, sitm=\E4,
        slines=%?%p1%{0}%>%p1%{128}%<%&%t\EC%p1%c%;,
        smglp=%?%p1%{256}%<%t\El%p1%{1}%+%c%;,
        smgrp=%?%p1%{256}%<%t\EQ%p1%{2}%+%c%;, smul=\E-1,
        snlq=\Ex1, snrmq=\Ex0, sshm=\EE, ssubm=\ES1,
        ssupm=\ES0, swidm=\EW1,
        u9=%?%p1%{0}%>%p1%{128}%<%&%t\EC%p1%c%;,
su01sa001>

The sequence of commands would be as follows, please remember to make a backup of the files before you edit them.

Code:
# infocmp ep2500+basic > new_file.txt
# vi new_file.txt
# tic new_file.txt > ep2500+basic

You will have to decide on the changes that you need such as pitch etc, it may well be that the file being used is the colour file or one of the other ep2500 files.

So you will have to be specific and edit the correct file with the correct values.

Regards

Dave

---------- Post updated at 12:57 PM ---------- Previous update was at 12:22 PM ----------

Hi,

For the values that you will be changing, you can look here this should give you a good start.

Regards

Dave
 

10 More Discussions You Might Find Interesting

1. Solaris

ulimit setting problem on Solaris

How do you make the ulimit values permanent for a user? by default, the root login has the following ulimits: # ulimit -a time(seconds) unlimited file(blocks) unlimited data(kbytes) unlimited stack(kbytes) 8192 coredump(blocks) unlimited nofiles(descriptors) 1024 memory(kbytes)... (2 Replies)
Discussion started by: kiem
2 Replies

2. Shell Programming and Scripting

Is this a shell setting problem?

I have a question regarding shell settings. I have one Sun server with Solaris 9 and Oracle 10g R2 on it. DB is up running well. I created a script to start DB automatically when server reboot. It didn't work. I manually run dbstart under $ORACLE_HOME/bin, the server return message like:" dbstart:... (7 Replies)
Discussion started by: duke0001
7 Replies

3. Solaris

Problem Setting $PATH

I am trying to install the pkg-get package to a fresh install of Solaris 10. I am able to download and install correctly using the default directory for both pkg-get and wget as found on blastwave.org. When I issue the command "which wget and which pkg-get" it returns no wget or pkg-get found in... (1 Reply)
Discussion started by: greengrass
1 Replies

4. Programming

problem while setting putenv

Hi, I m trying to change the env variable from the c program which inturn calls another c executable. i m using the putenv function but it does not set the value as required , it overwrites the values with some other values... i m using following cmd's to set the env variable FULL_PATH : ... (3 Replies)
Discussion started by: pgarg
3 Replies

5. Solaris

Problem defining remote printers on solaris 10

Good morning, I have a server with solaris 10 that I want to intall remote printers. I started lpsched deamon without problems with command: svcadm enable application/print/server I want to install printers that are defined locally on print server, so: lpadmin -p <device> -s <print... (2 Replies)
Discussion started by: bonovox
2 Replies

6. Web Development

Problem setting up apache

Hello there, I installed Ajaxterm on my Ubuntu 9.04 machine, and it's running ok if I use : http://localhost:8022/ in my browser. The problem is that I wanted to be able to acces it from somewere else through the internet. I read some instruction and help sites related to this problem, like :... (2 Replies)
Discussion started by: spiriad
2 Replies

7. Shell Programming and Scripting

Problem setting environment...

Hi All I'm attempting to automate the process of setting the DISPLAY environment variable when logging on (sourcing the .cshrc). I have a mixture of linux and solaris servers and this comnand: who -m | awk '{ print $6}' | tr -d '()' seems to work on all the servers. I want... (2 Replies)
Discussion started by: huskie69
2 Replies

8. UNIX for Advanced & Expert Users

Setting Ulimit problem

I changed the standard Ulimit sometime back. But when I change it back, the setting does not get updated. How do I make the change permanent Waitstejo (7 Replies)
Discussion started by: Waitstejo
7 Replies

9. UNIX for Dummies Questions & Answers

Picking problem with printers

Hello to everybody i have problem the picking process falls and falls. I dont now what the picking process do i believe that is a print server on a data base i dont know where to look. Is a solaris 10 with korn sheell the process show this ps -ef | grep picking batch 18466 1 0... (5 Replies)
Discussion started by: enkei17
5 Replies

10. Ubuntu

Backup setting problem

the way that i use to backup my server is using the script below in ssh. mysqldump --opt -Q -u username -p password > /var/www/squiro/sql/database.sql but i want to set the server backup everyday at 1pm in same folder. is that set it in crontab-e? how to set it? (3 Replies)
Discussion started by: mampwamp
3 Replies
set_color(1)                                                           fish                                                           set_color(1)

NAME
set_color - set_color - set the terminal color set_color - set the terminal color Synopsis set_color [-v --version] [-h --help] [-b --background COLOR] [COLOR] Description Change the foreground and/or background color of the terminal. COLOR is one of black, red, green, brown, yellow, blue, magenta, purple, cyan, white and normal. o -b, --background Set the background color o -c, --print-colors Prints a list of all valid color names o -h, --help Display help message and exit o -o, --bold Set bold or extra bright mode o -u, --underline Set underlined mode o -v, --version Display version and exit Calling set_color normal will set the terminal color to whatever is the default color of the terminal. Some terminals use the --bold escape sequence to switch to a brighter color set. On such terminals, set_color white will result in a grey font color, while set_color --bold white will result in a white font color. Not all terminal emulators support all these features. This is not a bug in set_color but a missing feature in the terminal emulator. set_color uses the terminfo database to look up how to change terminal colors on whatever terminal is in use. Some systems have old and incomplete terminfo databases, and may lack color information for terminals that support it. Download and install the latest version of ncurses and recompile fish against it in order to fix this issue. Version 1.23.1 Sun Jan 8 2012 set_color(1)
All times are GMT -4. The time now is 04:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy