in reply to Display text in Unix window with Perl

Sure, see the Tk module.

After Compline,
Zaxo

  • Comment on Re: Display text in Unix window with Perl

Replies are listed 'Best First'.
Display text in Unix window with Perl
by Anonymous Monk on Jul 19, 2003 at 23:25 UTC
    I think you want the Text or Scrolled widget in Tk This ought to be close to something that will work. I am newbie but this works for me.
    use Tk; my $mw = MainWindow -> new(); my $text = $mw -> Scrolled("Text", -height => 45, -wrap => 'word') -> place (#whatever works); then you need these to add, delete and get text to window. $text -> insert('end', $whatever); $text -> delete("1.0",'end'); my $fetch_the_text = $text -> get("1.0","end");
    Should work Unix or Windows, and you can cut and paste from outside the Window.

    edited: Sat Jul 19 23:41:30 2003 by jeffa - code tags

      Doh, sorry for no formatting, :(