Beefy Boxes and Bandwidth Generously Provided by pair Networks chromatic writing perl on a camel
"be consistent"
 
PerlMonks  

Re: How to detect X?

by Courage (Parson)
on Feb 21, 2005 at 04:50 UTC ( [id://432986]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to How to detect X?

winfo server:
E:\sh>perl -MTcl::Tk -we "print map {qq/[$_]/} Tcl::Tk::tkinit->interp +->winfo('server','.')" [Windows][5.0][2195][Win32]

On X system there will be obvious difference.

I know that similar call exists in Tk, but can't remember right now, as it is easier done in Tcl::Tk.

Replies are listed 'Best First'.
Re^2: How to detect X?
by rcseege (Pilgrim) on Feb 21, 2005 at 20:24 UTC
    Easier, eh? How about this:
    perl -MTk -we "print tkinit->server"
    Sorry, couldn't resist...
      it was easier for me to find in docs: I remember I saw it somewhere in Tk but had only Tcl/Tk handy.

      In my opinion Tcl::Tk is more Tk than Tk, because first one refers to most recent and up-to-date one.

      addition: as long as Tcl::Tk many compatible with Tk, and based on your post, here are two other ways which indeed work:

      perl -MTcl::Tk -we "print Tcl::Tk::tkinit->server"
      or
      perl -MTcl::Tk=:perlTk -we "print tkinit->server"

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://432986]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.