BZ Menuline v1.2 by Jack Levy ----------------------------- For those of you that have used BZ and wanted to create string or program compressions, here is a menuline that will allow you to do so. In addition, it supports storage of BZ/UBZ in any library or directory, or simply just BZ. The detection is automatic and decided at runtime. If BZM can not locate BZ it will exit with a Syntax Error. If UBZ is found, it will use it; otherwise BZ is used for decompression. BZM requires one argument: the object you want to compile. When you run BZM, the following menu will appear: BZ - Execute BZ compressor on the level1 argument. UBZ - Execute UBZ decompressor on the level1 argument. If the argument is a STR/PRG created argument, it will extract the compressed string and execute UBZ as normal. If UBZ does not exist, it will use BZ for decompression instead. [NOTE: If UBZ does not exist, the functionality of the BZ/UBZ keys are identical, except for program extraction.] STR - Intended for compression of strings, grobs, lists, or other viewables. First executes BZ on the level1 argument, then attaches a UBZ (or BZ if UBZ does not exist) to the end of the compression string. Thus, when the result is stored in a variable and executed, the string will come up without the need for manual decompression. PRG - Intended for compression of programs. Executes BZ on the level1 argument, then attaches a UBZ (or BZ, if UBZ doesn't exist) EVAL at the end of the string. When the result is stored in a variable, executing this variable will result in your program being run with no need for manual decompression. NOTE: If you are using BZ v1.2, you must rename the version of BZ you are using (BZ1 or BZ4) to 'BZ' or BZM will not load. If your copy of BZ is already coded into a library as BZ1/4, then you will need to disassemble the library and change it yourself. You may find it useful to keep BZM assigned to your left-shift-UNITS key. To do so, change to user mode if you aren't already in it (left-shift-alpha) and enter: << BZM >> 74.2 ASN If you do not know what BZ is, it is an excellent compressor for the GX by Mika Heiskanen; It can be found via anonymous FTP at HPCVBBS.EXTERNAL.HP.COM.