Rick's Windowing Korn Shell Examples and Programs These are various examples of programming WKSH in Motif mode. Its in something of a state of flux right now, look for periodic new versions to appear from time to time. The latest version of this is and will always be available on: ftp.x.org:/contrib/wksh-rick-DATE.tar.gz Note that I have been tending to use the full names of functions, such as XtCreateManagedWidget, rather than the short alias, such as cmw. I found I preferred the clarity of the long name, even though I would normally prefer the terser style. There is also a mailing list for wksh programming. Send mail to wksh_lists@summit.novell.com to get on the list. -Rick Richardson, Digi International, rick@digibd.com lpx - This is an interface to "lp" that allows you to specify various lp options - destination, copies, file types, title, etc. It also lets you redirect the printer output to the DigiFAX Unix Facsimile system. Pipe your printer output to this, instead of "lp". Tell all your desktop accessories to send their output to lpx, too. It dynamically loads the Table widget into wksh, so its a good example of how to do that. I wrote this because UnixWare's PrtMgr does not allow you to specify the destination printer, and is completely clueless that you might want to redirect printer output to a file or another program. I MR'ed the missing destination selection way back in UW v1.0 beta, and since nothing has been done about it by Novell, it seems we users will have to finish the desktop metaphor for them. Table/* - This is the famous Table widget, stolen directly from WCL-2.5. I can't see how one can program in Motif without it - there are just too many layouts that can't be expressed with just RowColumn and Form. Table.so is a binary DSO of the widget for UnixWare, in case you don't have a compiler handy. xrerfuncs/* - After I wrote lpx, I realized I needed to make a library of convenience routines. This is it. The XrerInitialize function, which replaces XtAppInitialize, shows how to get the EditRes protocol turned on so that you can examine your widget hierarchy and change resources. xpbm - Eventually will be a GUI interface to the PBMPLUS package. Right now, serves as a test bed for xrerfuncs. hw_info - This will eventually become a generic editor for the /etc/conf/sdevice.d/* kernel HW configuration files (another program that Novell has failed to include in the desktop, despite my prodding). Right now, all it can do is display the HW entries in a scrolled list, with various sorting options. xrer_template - An basic template of a Motif dialog widget using wksh. Start with this if you want to make a new dialog style program. ideas/* old/* This is various junk and half-written programs I've been collecting, but haven't the stomach to get rid of it.