Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

If I were to write a program using Perl::Tk or perhaps some other module for writing graphical interfaces, would this program need to be accessed via something like Xwindows? or could it be accessed from the command line of an "ordinary" telnet session?

Currently I have about 20 users, all of which access this menu through a standard telnet applications. I would rather not have to support an added interface if I can help it, but would like to take advantage of creating "windowed" Perl programs....

Edit: chipmunk 2001-11-13

Replies are listed 'Best First'.
Re: Using Perl::Tk
by {NULE} (Hermit) on Nov 14, 2001 at 09:02 UTC
    Hi,

    Perl::Tk can not be used over a telnet session without X11 (exceed, for example on Win32 boxen). I've written a number of Perl::Tk apps for work that we run off of Sun servers using telnet and X11 on Win2k workstations using exceed, so if you do go that way it will work.

    Perl::Tk also, just to be clear, runs just fine on Win32 natively, and you can use Net::Telnet within it, so you might also be able to approach your problem that way.

    One last alternative that might help you out is something like VNC.

    Update: mattr makes a going point as well - Curses might give you some more ideas to work with. If you wish to remain perlish look at Curses and especially Curses::Widgets, which is a nice addon that give lists buttons and other widgets.

    Good luck,
    {NULE}
    --
    http://www.nule.org/

Re: Using Perl::Tk
by mattr (Curate) on Nov 14, 2001 at 13:23 UTC
    Don't know if this would be useful but here's a link.

    CK Curses Tcl Toolkit: "an excellent widget set for Tcl which retains much of the Tk syntax, but uses curses to render the widgets in a character-cell terminal instead of X and a graphical display. "