Article View: comp.unix.programmer
Article #1297Reading termcap database other than termcap
From: C Wayne Huling
Date: Tue, 27 Nov 1990 02:04
Date: Tue, 27 Nov 1990 02:04
13 lines
1025 bytes
1025 bytes
I have written a small program to accept the name of a printer and search the printcap for the hostmachine. I use the termcap routines supplied in the Unix PRM. Unfortunatly it reads from a environment set variable. My problem is if I set this variable "TERM" to be /etc/printcap and then run another program that needs "TERM" to be /etc/termcap then it will bomb. Is there any way of setting the file to be read from internally? Wayne -- ---> Sometimes I have evil thoughts...... ---> GC.
Technical Details
Message-ID:
<WAYNE.90Nov26180444@forchammer.cs.odu.edu>Path:
arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!xanth!xanth.cs.odu.edu!wayneShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!xanth!xanth.cs.odu.edu!wayne From: wayne@cs.odu.edu (C Wayne Huling) Newsgroups: comp.unix.programmer Subject: Reading termcap database other than termcap Message-ID: <WAYNE.90Nov26180444@forchammer.cs.odu.edu> Date: 27 Nov 90 02:04:44 GMT Sender: usenet@cs.odu.edu (Usenet News Poster) Organization: Old Dominion University, Norfolk, VA Lines: 13 Nntp-Posting-Host: forchammer.ocean.odu.edu