golemwashere has asked for the wisdom of the Perl Monks concerning the following question:

Hello,
I'm trying to script a cicsterm call to a transaction through a telnet session to an AIX box (yuk).
The problem is the cicsterm command if called from a Net::Telnet script quits out saying "minimum screen size of 25 rows by 80 coloumns is required".
(the command works in a sort of graphical, mode , emulating a 3210 host connection).
I tried Term::ANSIScreen to send through the telnet a setmode(2) , which means ANSII codes for my terminal is 80x25.
but it didn't work.
I tried setting the TERM env both to vt100 and ansii but that's not enough.
I found this Term:VT102 but unluckly I can't manage to use it properly with Net::Telnet....
does anyone has a sample script to provide? (All my attempts to adapt the example script included in the module failed )
Infinite thanks Golem

Replies are listed 'Best First'.
Re: Net::Telnet + Term::VT102 sample
by waswas-fng (Curate) on Jun 09, 2003 at 11:33 UTC
    try the -a flag when starting cicsterm, that allows it to be more flexable with term type if i remember.

    -Waswas
      Thanks a lot,
      I tried both -A -Q and all the other switches....
      it works in interactive mode but not through Net::Telnet (the dump always says minimum screen size....)
      ... any sample of a script calling a program with a graphical interface (like PINE for example) and grabbing a screen maybe using Term::VT102 would be usefull...
      Thanks Golem
      I solved with a simple $t->cmd( 'stty rows 25 columns 80');

      sometimes the solution it's so easy and simple....
      even no Term:VT102 was required...
      anyway thanks all the same...
      Golem