{The jstools Application Suite

Introduction
The jstools package is a suite of applications based on a common set of libraries.  The applications share a set of libraries, so they have a consistent look­and­feel.  They are extensively customisable, both through startup scripts and through a preferences mechanism.  They are written in wish(1), an graphical shell based on the Tk toolkit and the Tcl scripting language (all three by John Ousterhout of Sun Microsystems).

This document describes version 4.1/4.4 of the jstools package.

Compatibility
Version 4.1/4.3 of the jstools application suite is compatible with Tk 4.1 and Tcl 7.5; it may work properly with other versions, but then again, it might not.  I have tested the jstools applications lightly under Tk 3.6, and they appear to work.

There's a bug in unpatched Tk 3.6 that causes wish(1) to die with a core dump under certain circumstances; you should apply the official patch to Tk, which is available with the Tk sources on the official Tk distribution sites.

There were focus­related bugs in Tk 4.0b2 (the second beta release) which caused the jstools applications (and some others) to crash frequently; later versions of Tk do not suffer from this problem.

Changes
See jstools changes since 4.0/4.0 for a change log (including pointers to earlier changes).

Applications
The jstools package currently includes the following chief applications:

jabbrevs - an abbreviation manager (used by jedit)
jdoc - a documentation viewer, which you are presumably using to read this
jedit - an multi­mode, multi­window text editor
jmore - a file viewer, essentially a graphical analogue to more(1)
jprefs - a tool to set preferences shared by the jstools applications

The jedit editor can also be embedded in other Tk applications (and jmore and jprefs are really just wrappers around library procedures, so they can as well).  I hope to add this capability to the other applications in the future.

Shell Utilities
The following little applications are also included.  They are essentially wrappers around particular library routines, intended to make jstools panels available from shell scripts, window­manager configuration files, etc.

jalert - display an alert panel
jcolname - prompt for a colour name
jcolrgb - prompt for a colour by RGB values
jconfirm - ask user for confirmation
jfs - allow user to select a file
jprompt - ask user to supply a string

Unsupported Applications and Demos
There are also a few toy or demonstration applications distributed as part of jstools. Some of these are applications that aren't yet robust or functional enough to be considered production­quality, but which I intend to further develop; others are simply proof­of­concept or special­purpose hacks.  These include:

jcalendar - a tool to edit and print calendar data in xcalendar(1) format
jhotlist - a tool to manage hotlists for an old version of NCSA Mosaic
jlaunchpad - a menu of applications and remote hosts, similar to SGI's toolchest.
jmsgs - a graphical analogue to the Berkeley msgs(1) command
jpeople - an address­list and email alias manager
jperson - a command­line interface to the jpeople database
jrtgrep - search for a regular expression in a .jrt or .jdoc document

Usage
Assuming jstools has been installed normally at your site, you shouldn't need to do anything special to use the applications, beyond making sure they're in your PATH.  However, you can set the environment variable JSTOOLS_LIB to specify the directory that holds the jstools libraries.  (This is normally /usr/local/jstools/lib or a location chosen by the person who installed jstools at your site.)  You may want to do this if you have jstools in your own home directory for personal use, or to test jstools out before installing it.

For specific information on using or invoking particular applications, see the documentation for the individual application (referenced above under Applications).

Credits and Copyright
Author
Jay Sekora 
js@aq.org
http://www.aq.org/~js/

Copyright
The jstools distribution (applications, libraries, and support files) is copyright © 1992-1995 by Jay Sekora, but may be freely copied and modified for any purpose under the conditions spelled out in the copyright notices at the top of each code file.

Thanks
Most importantly, I'd like to thank John Ousterhout <ouster@tcl.eng.sun.com>, the author of Tk and Tcl, for providing such a wonderful, robust, simple language for writing X Windows applications, and the Tcl community which has helped extend Tk and Tcl without forcing them to succumb to feature bloat.

In many places in the libraries, I've borrowed code from other people (with permission); they're mentioned in the documentation files for the individual libraries and in comments in the code itself.

Preferences
The jstools applications (and other applications written with the jstools libraries) share a set of global preferences.  These preferences can be set from within jstools applications through the Global Preferences panel, or with the jprefs application, (which is just a wrapper around the Global Preferences panel).  Most jstools applications also provide application­specific preferences which can be set with an application­specific preferences panel.

Global preferences are saved in the file ~/.tk/defaults, which is in the standard X Windows resource format.  (For more information on this format, see X(1), particularly the section RESOURCES, and option(n), particularly the section on option readfile.)  Most jstools applications save their application­specific preferences in the same format in the file ~/.tk/application-defaults, where application is the name of the particular application, but some may save them someplace else and/or in some other format.

Future Directions
· I intend to move more code from other applications into separate libraries.
· I intend to make jdoc (at least, and perhaps other applications as well) embeddable.
· I hope to overhaul the Preferences mechanism.  I'd like to have some system similar to that in Brent Welch's exmh application, where preferences are organised into categories.  I'd like a central preference panel to list the categories, and for each application to be able to add categories, instead of having separate global and application­specific panels.  Also,  I'd like to add an interface for editing all the standard Tk appearance resources, as described in options(n), so users don't have to edit defaults files by hand to adjust fonts, colours, relief options, etc.
· I'd like to add a notecard­browser application, for typing and searching through lots of short notes - an electronic card file.
· I'd like to add a basic sketching program.  (It would be nice if drawings created by it could be included in jedit documents.)
·  I'd like to have some of the applications dynamically communicate among each other.  For instance, as soon as you add an abbreviation with jabbrevs, it should be available in all your jedit sessions.  Global preferences you change in one application should be reflected in all your running jstools applications.  And perhaps various applications could communicate among each other to decide where to put their windows, so windows overlap as little as possible.
} {{{jdoc:anchor:anchorname {3.0 4.0 18.0 19.0 50.0 51.0 55.0 55.21 69.0 70.0 77.0 77.47 80.0 80.86}} {list:level:1 {75.0 81.0}} {sel {74.17 75.0}} {jdoc:xref:link {4.107 4.125 4.245 4.268 16.4 16.33 21.0 21.8 21.44 21.49 22.0 22.4 23.0 23.5 24.0 24.5 25.0 25.6 25.23 25.69 27.4 27.9 27.29 27.37 27.68 27.73 27.78 27.84 32.0 32.6 33.0 33.8 34.0 34.7 35.0 35.8 36.0 36.3 37.0 37.7 51.262 51.283 53.148 53.160 70.62 70.83 70.100 70.118 70.191 70.219 70.233 70.239 76.19 76.23 77.21 77.46 79.111 79.116 80.142 80.150 80.187 80.192}} {jdoc:xref:manpage {4.291 4.295 11.46 11.50 24.59 24.63 42.54 42.63 45.45 45.49 72.152 72.153 72.198 72.204 77.468 77.475}} {richtext:font:roman {2.0 3.0 4.0 4.4 4.11 4.291 4.295 6.47 6.54 8.0 9.0 9.23 9.30 9.91 9.94 9.179 9.186 11.46 11.50 13.85 13.92 15.0 16.0 16.4 16.33 18.0 19.0 19.4 19.11 21.0 21.8 21.44 21.49 21.50 22.4 23.0 23.5 24.0 24.5 24.59 24.63 25.0 25.6 25.49 25.56 27.4 27.9 27.68 27.73 27.78 27.84 29.0 29.15 30.137 30.144 32.0 32.6 33.0 33.8 34.0 34.7 35.0 35.8 36.0 36.3 37.0 37.7 39.0 39.34 40.78 40.85 42.0 42.9 42.54 42.63 43.0 43.8 44.0 44.10 44.71 44.80 45.0 45.5 45.45 45.49 46.0 46.7 47.0 47.7 47.42 47.49 48.0 48.7 48.47 48.51 48.55 48.60 50.0 51.0 51.9 51.16 51.161 51.165 51.214 51.225 51.266 51.273 51.304 51.326 51.376 51.383 51.436 51.443 51.500 51.507 53.148 53.160 55.0 55.21 56.0 56.6 58.0 58.9 59.0 59.22 61.0 61.9 62.4 62.11 64.0 64.6 65.52 65.76 69.0 70.0 70.4 70.11 70.66 70.73 70.162 70.169 70.233 70.239 70.322 70.329 72.41 72.55 72.152 72.153 72.183 72.192 72.198 72.204 72.237 72.252 72.261 72.268 72.357 72.383 72.391 72.402 74.0 74.17 76.19 76.23 77.111 77.115 77.468 77.475 79.111 79.116 80.142 80.150 80.187 80.192 80.293 80.300 81.0}} {richtext:font:italic {9.91 9.94 72.391 72.402}} {richtext:font:bold {4.4 4.11 6.47 6.54 9.23 9.30 9.179 9.186 13.85 13.92 19.4 19.11 25.49 25.56 30.137 30.144 40.78 40.85 51.9 51.16 51.266 51.273 51.304 51.326 51.376 51.383 51.436 51.443 51.500 51.507 62.4 62.11 70.4 70.11 70.66 70.73 70.162 70.169 70.322 70.329 72.41 72.55 72.183 72.192 72.261 72.268 72.357 72.363 72.374 72.383 80.293 80.300}} {richtext:font:bolditalic {16.4 16.33 53.148 53.160 72.363 72.374}} {richtext:font:typewriter {4.291 4.295 11.46 11.50 21.0 21.8 21.44 21.49 21.50 22.4 23.0 23.5 24.0 24.5 24.59 24.63 25.0 25.6 27.4 27.9 27.68 27.73 27.78 27.84 32.0 32.6 33.0 33.8 34.0 34.7 35.0 35.8 36.0 36.3 37.0 37.7 42.0 42.9 42.54 42.63 43.0 43.8 44.0 44.10 44.71 44.80 45.0 45.5 45.45 45.49 46.0 46.7 47.0 47.7 47.42 47.49 48.0 48.7 48.47 48.51 48.55 48.60 51.161 51.165 51.214 51.225 58.0 58.9 59.0 59.22 65.52 65.76 70.233 70.239 72.152 72.153 72.198 72.204 72.237 72.252 76.19 76.23 77.111 77.115 77.468 77.475 79.111 79.116 80.142 80.150 80.187 80.192}} {richtext:font:heading0 {1.0 2.0}} {richtext:font:heading1 {3.0 4.0 18.0 19.0 50.0 51.0 55.0 55.21 69.0 70.0 74.0 74.17}} {richtext:font:heading2 {8.0 9.0 15.0 16.0 29.0 29.15 39.0 39.34 56.0 56.6 61.0 61.9 64.0 64.6}} {special:list_item:1 {75.0 75.1 76.0 76.1 77.0 77.1 78.0 78.1 79.0 79.1 80.0 80.1}} {jdoc:manpage:more {24.59 24.63}} {jdoc:manpage:xcalendar {42.54 42.63}} {jdoc:manpage:msgs {45.45 45.49}} {jdoc:link:#Preferences {4.245 4.268 77.21 77.46}} {jdoc:anchorname:Applications {18.0 19.0}} {jdoc:anchorname:Introduction {3.0 4.0}} {jdoc:link:jslibraries.jdoc {4.107 4.125 51.262 51.283 70.62 70.83}} {jdoc:link:jabbrevs.jdoc {21.0 21.8 80.142 80.150}} {jdoc:link:jdoc.jdoc {22.0 22.4 76.19 76.23}} {jdoc:link:jedit.jdoc {21.44 21.49 23.0 23.5 27.4 27.9 79.111 79.116 80.187 80.192}} {jdoc:link:jmore.jdoc {24.0 24.5 27.68 27.73}} {jdoc:link:jprefs.jdoc {25.0 25.6 27.78 27.84 70.233 70.239}} {jdoc:anchorname:Usage {50.0 51.0}} {jdoc:anchorname:Preferences {69.0 70.0}} {jdoc:manpage:option {72.198 72.204}} {jdoc:manpage:X {72.152 72.153}} {jdoc:manpage:options {77.468 77.475}} {jdoc:link:#Applications {53.148 53.160}} {jdoc:manpage:wish {4.291 4.295 11.46 11.50}} {jdoc:anchorname:Preferences_futures {77.0 77.47}} {jdoc:anchorname:interapplication_communication {80.0 80.86}} {jdoc:link:panels/prefs.jdoc {25.23 25.69 70.100 70.118 70.191 70.219}} {jdoc:anchorname:Credits_and_Copyright {55.0 55.21}} {jdoc:link:jedit_prog.jdoc#Embedding_jedit_in_Other_Applications {27.29 27.37}} {jdoc:link:jalert.jdoc {32.0 32.6}} {jdoc:link:jcolname.jdoc {33.0 33.8}} {jdoc:link:jcolrgb.jdoc {34.0 34.7}} {jdoc:link:jconfirm.jdoc {35.0 35.8}} {jdoc:link:jfs.jdoc {36.0 36.3}} {jdoc:link:jprompt.jdoc {37.0 37.7}} {jdoc:link:jstools/jstools-changes-4.0.jdoc {16.4 16.33}} {list:1:ul {75.0 81.0}}} {{richptr 16.34} {matchend 73.0} {abbrevstart 81.0} {abbrevend 81.0} {insert 74.17} {emacs_mark 81.0} {matchstart 73.0} {anchor 74.17} {current 1.0}}} {}