This is patch2 for Wafe 0.96. It contains: - All changes included in patch 1 (see wafe-0.96.p1.README) - A fix for wafe/libhtmlw/HTML.c on alpha machines under OSF/1 and most likely as well on sun machines under SunOs 4.1.3 (Thanks again to Anthony Baxter ) - A slightly improved INSTALL file - A slightly improved Imakefile - Three new commands for wafe and mofe: addInput This command can be used to add an additional input handler or exception handler. If used with "read" as 2nd argument, each time when data is ready the data is read and APPENDED to the specified TclVariable. and TclCommand is executed. addInput returns an inputId (see below) Note that the ammount of data read might depend on the buffering of the operating system. If only the newly read data should be kept in the TclVariable, TclCommand should set it empty after processing its contents. If fileno corresponds to an open file, a busy loop is likely to occur. See wafe/src/tcl/addInput.tcl for an example. removeInput removes an input added by addInput. inputId is returned from addInput. fileno The function fileno returns for the file opened by using tcl's open command the file descriptor. For pipes the file descriptor might be different for reading or writing As shipped, 16 additional input handlers might be added. If somebody thinks, thar are not enough, or finds the implemented semantics inconveniant, feel free to convince me. To apply this patch, "cd" to the wafe 0.96 directory, expand the tar file, and do a "rm -f ../libhtmlw/*.a; make". -gustaf