Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: How can I redirect Windows command line output into a PerlTk frame

by KSURi (Monk)
on Mar 05, 2009 at 08:55 UTC ( [id://748464]=note: print w/replies, xml ) Need Help??


in reply to How can I redirect Windows command line output into a PerlTk frame

You can redirect output to a text widget by tie()ing:
my $text = $mw->Text(-width => 10, -height => 10)->pack; tie *STDOUT, ref $text, $text;
Maybe this will help you
  • Comment on Re: How can I redirect Windows command line output into a PerlTk frame
  • Download Code

Replies are listed 'Best First'.
Re^2: How can I redirect Windows command line output into a PerlTk frame
by BrowserUk (Patriarch) on Mar 05, 2009 at 16:14 UTC
    You can redirect output to a text widget by tie()ing:

    Does this solution work on Win32?

    I ask because I would assume that the tie solution would itself rely upon the use of non-blocking filehandles and select for its internal operation, and as these do not work on Win32 filehandles...


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://748464]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-03-29 15:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found