Not knowing anything about the flow program all I can suggest it that it has a pager flag and in its interaction with Net::Telnet is delivering a virtual screenful. I don't definitively know how to fix flow or the Net::Telnet interaction. Regardless this hack should work around it. If I pipe a stream through more and then to cat:

$ ll | more | cat

Then more is effectively disabled as cat accepts the stream and just pipes it out so it streams several screenfuls. Certainly worth a try and I can't see why it will not work as we just abstracted the output from flow away from the vtty, but without using a file.

Next suggestion is to try:

$obj->option_accept( Dont => TELOPT_NAOP, Dont => TELOPT_NAWS ) # from the source we see the constants being declared..... # sub TELOPT_NAOP () {9}; # Output Page Size # sub TELOPT_NAWS () {31}; # Negotiate About Window Size

If you dig into the souce you should find a burried use IO::Pty which does itself have a method to control the window size but no easy way to get at it short of hacking the source.

cheers

tachyon


In reply to Re^3: problem with net::telnet moduleand STDOUT by tachyon
in thread problem with net::telnet moduleand STDOUT by nigels

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.