in reply to tty in Tk app

If I understand what you want to do correctly, the Tk::ExecuteCommand module should do it easily. There are other things you could do too, like embed a real xterm into the frame.
#!/usr/bin/perl use Tk; use Tk::ExecuteCommand; my $mw = MainWindow->new; $ec = $mw->ExecuteCommand( -command => '', -entryWidth => 50, -height => 10, -label => '', -text => 'Execute', )->pack; $ec->configure( -command => 'dir' ); $ec->execute_command; $ec->bell; $ec->update; MainLoop;

I'm not really a human, but I play one on earth. flash japh

Replies are listed 'Best First'.
Re^2: tty in Tk app
by gri6507 (Deacon) on Jul 31, 2004 at 16:33 UTC
    > There are other things you could do too, like embed a real xterm into the frame.

    I believe that's exactly what I would like to do. How can that be done?