Printing Sterling Pound Sign


 
Thread Tools Search this Thread
Operating Systems SCO Printing Sterling Pound Sign
# 1  
Old 05-08-2007
Printing Sterling Pound Sign

We need to print the sterling pound sign on printers connected directly to a terminal and configured using the /dev/null device.

We have used mapchan to enable this on the printers connected directly to the SCO server. Any idea how this can be activated?

OS: SCO Open Server 5.0.5
# 2  
Old 05-08-2007
Check to see if the character is part of the printer font set, and also see if it is part of the terminal character set, Then send that character to the terminal .
Rather than using mapchan, try sending the character as an escape sequence as in \0nnn where nnn is the octal value of the character.
# 3  
Old 05-09-2007
The character exists in the printer font set, the pound sign is given as 0163 which works in Windows but in UNIX it only accepts 163 which is "ú". If I can get an escape sequence that displays on the UNIX without mapchan then my problem would be solved.

Note that with the MAPCHAN I can view the pound sign on screen but It does not print to ttyp configured printers. It prints fine to the local printer connected to the lp0 port, but this only after setting the device locale to cons.858



Quote:
Originally Posted by jgt
Check to see if the character is part of the printer font set, and also see if it is part of the terminal character set, Then send that character to the terminal .
Rather than using mapchan, try sending the character as an escape sequence as in \0nnn where nnn is the octal value of the character.
# 4  
Old 05-09-2007
Am I correct in assuming that you have the following hardware configuration:
A unix host accessed by a windows pc over a tcp-ip network using a windows terminal emulation program, and using some escape sequence to turn the printer on and off.
You could also try writing a program that sends each character to the printer.
Something like:

for i=32 to 255
print i; chr$(i)
next i

Jack
# 5  
Old 05-10-2007
Yes that is the configuration, but we are using a utility called FTCopy that ships with an emulator called ice.tcp from jriver.

the syntax is

ftcopy -a <ip address of PC with printer connected> filename LPT1

Note that we are also having the same problem with a printer connected to a D-Linkt ethernet print server.

The issue we need to resolve is how to get sco to recognise the pound sign generically. Alternatively will be to set the /dev/null device as a listed device in the locale settings like /dev/lp0 appears.
# 6  
Old 05-10-2007
Both of the printing methods you use are sending a closed file to some destination, you should be able to intercept the file, and using 'sed' change the value of the pound sign on the SCO side to whatever the printer likes before finally using ftcopy or lp.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Pound symbol is not displayed in Linux file

Hi All, I am trying to copy a test from database into a file, basically that is what our application do. We will process all values and store it in a Linux file. When i look the database I am seeing as below spend (£000's) but after processing and stored to a file , i am seeing as... (3 Replies)
Discussion started by: arunkumar_mca
3 Replies

2. UNIX for Dummies Questions & Answers

Sco Unix printing : jobs hangs in queue - printing via lp versus hpnpf

Hi, We have a Unix 3.2v5.0.5. I installed a printer via scoadmin, HP network printer manager with network peripheral name (hostname and ipadres are in /etc/hosts). This is the configuration file : Code: root@sco1 # cat configurationBanner: on:AlwaysContent types: simpleDevice:... (0 Replies)
Discussion started by: haezeban
0 Replies

3. Programming

Rupee Sign printing using Pro * C (Unix Platform/Oracle10g) code

Hi All, I want to print new Indian Rupees sign in my report which is developed in Pro*C code. Please help me to know: ->What necessary settings i have to do.. I am looking for free product. Please help (0 Replies)
Discussion started by: msbrd
0 Replies

4. Solaris

Printing pound sign from Solaris (JETDIRECT)

Hi, Any ideas of the character sequence to print the £ sign from Solaris using network printing over Jetdirect software ? Thanks Matt (1 Reply)
Discussion started by: mattpar75
1 Replies

5. Shell Programming and Scripting

Sign on/Sign off logging script

I'd like to make a script that I can execute every time I sign on to my linux box that keeps track of the time and allows to me to add a remark to a file. So basically once I log in, I run the script, and it outputs the date and time to a text file (log.txt). But that isn't my problem. I need... (1 Reply)
Discussion started by: Glider
1 Replies

6. UNIX for Advanced & Expert Users

Special characters getting replaced by &Pound in Unix Environment

Hi, Please find the Question Summary below- In our email template document(.txt) bullets and Apostrophe are getting replaced by the string "&pound" in our Live environment.We are using sun solaris 8 in live. Can anybody let me know why this happens and how to prevent this . Thanks... (0 Replies)
Discussion started by: kaushik05
0 Replies

7. UNIX for Dummies Questions & Answers

remove pound sign from filename

Surpisingly, I've only found information regarding removal of files with special characters in the name. My problem is this: files are downloaded to my Unix box from mainframe, and each one has a pound sign as the first character of the filename. original: #FONT what I need: FONT ... (4 Replies)
Discussion started by: kristy
4 Replies
Login or Register to Ask a Question