in reply to Re^2: embedding xterm in perl/tk window
in thread embedding xterm in perl/tk window
(That worked pretty well for me when I put "ls" in place of "programname".)use strict; use Tk; my $mw = MainWindow->new; my $tx = $mw->Scrolled('Text', -height => 24, -width => 90)->pack(); my $data = `programname`; $tx->insert( '0.0', $data ); MainLoop;
Presumably there's more to your app than that, but you get the idea. If that's the sort of thing you're after, using an embedded xterm, while really cool, is more complicated than it needs to be. If you need something more, what would that be, exactly?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: embedding xterm in perl/tk window
by diamantis (Beadle) on Oct 08, 2007 at 04:09 UTC | |
by graff (Chancellor) on Oct 08, 2007 at 05:25 UTC | |
by diamantis (Beadle) on Oct 08, 2007 at 06:44 UTC | |
by graff (Chancellor) on Oct 08, 2007 at 13:14 UTC | |
by diamantis (Beadle) on Oct 08, 2007 at 17:48 UTC |