HELP with termcap.pl 
Author Message
 HELP with termcap.pl

Here's hoping one or more of y'all can help me out (again)!

I've written several scripts which members of the campus
community will use to request library services.  The
scripts run under inetd so that the users can select
a particular service from menus on several other boxes.
For example, selecting such a service from one such
menu would cause

telnet host <port>

and host fires up the script associated with that port.

The scripts prompt users for specific information,
and the input is evaluated for completeness/validity.
Then the script opens a pico buffer so that users
can append free form comments to their requests.

Everything works fine until the script tries to
start pico.  The error message "Incomplete termcap
statement" is generated and the script continues
without opening pico.  I'm assuming that because
pico is a full screen editor and no terminal
type is established because there is no 'login'
per se -- that that is the source of my problem.

I've been trying to use termcap.pl to get the terminal
characteristics from termcap but thus far without
success.

Ideally, I'd like to be able to do a standard

Please enter terminal type -- press ENTER for vt100

sort of thing -- and get the appropriate info
from the termcap database.  Can anyone give me
an idea how to do this?

If it matters -- I'm using
perl 4.036
RS6000 running AIX 3.?

and connections will be coming from other
RS6000 boxes and (hopefully) a VAX (so
it would be really useful to be able to get
vt220 or 320 capabilities when called for.)

Thanks --

Steve
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         Steve Rafferty, Systems Dept., Health Sciences Library
          111 S. Greene St., Baltimore, MD 21201  410-706-1814
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



Sun, 23 Nov 1997 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. perl5a4 termcap.pl bug and fix

2. Termcap.pl example in Perl

3. Insecure dependency in termcap.pl

4. termcap.pl still buggy

5. more termcap.pl problems & a quick question

6. Bug in termcap.pl

7. termcap.pl modifications

8. help with ftp.pl/chat2.pl

9. Help: problem with ftp.pl and chat2.pl

10. program to parse termcap file?

11. Termcap library

12. Calling TERMCAP manually

 

 
Powered by phpBB® Forum Software