[Back to TkGoodStuff] TkGoodStuff WWW

TkGoodStuff WWW

Description

The WWW client is a web browser launcher.

Clicking mouse button 1 on the WWW button launches your browser program (the button stays depressed and inoperative until you exit the mailer program). Button 3 is used to visit the URL that is the current X selection (e.g., highlighted with the mouse in some application). If your browser is supported (Netscape and lynx are the ones I've tested; hippo is supported but as yet, I think, is nonexistent), then WWW starts the browser unless it's already running; if it's running, WWW sends the browser instructions to go to the selected URL. This is useful, e.g., for visiting web pages that are mentioned in news articles, email, etc.

Thanks to Seth Golub for the idea of using the X selection in this way.

Invocation and Variables

To invoke WWW, include in your ~/.tkgoodstuffrc:
Client WWW
To set the variable XXXX to the value YYYY, in your ~/.tkgoodstuffrc, include the line:
set XXXX YYYY
Here are the variables relating to WWW and their default values (notes: (i) $XXX means: the value of our variable XXX; (ii) "$env(XXXX)" means: the value of the environment variable XXXX):

Variable Function Possible Values Default
WWW_browser Browser name (netscape, lynx, hippo, etc.) $TKG_browser
WWW_launch_command The command to start your browser (unix command) (default depends on $WWW_browser)
WWW_text Text on WWW button (text string) (default depends on $WWW_browser)
WWW_imagefile Image on WWW button (file containing image) (default depends on $WWW_browser)
WWW_foreground
WWW_background
WWW_activeforeground
WWW_activebackground
Colors for icons. Foreground works only with bitmaps. (standard) $TKGbuttonforeground
$TKGbuttonbackground
$WWW_foreground
$TKGactivebackground

Sep 14, 1995. Mark Crimmins markcrim@umich.edu

[Back to TkGoodStuff]