bson@rice-chex.ai.mit.edu (Jan Brittenson) (03/19/91)
This is an addition to my previous post on the built-in catalog routines. I the following RAM locations are used: 70623 Menu key program? 7060a Key program, called with 2: shift code, 1: scan code 70605 Redisplay program 70614 Error hook? 7060f ? 707d3 ? (short) 707c9 Index of leftmost displayed menu entry (short) Local variables are used as follows: 'savedUI Used to save (shallow-bind) the previous set of UI (User Interface?) variables. 2nd local Current point index (1 = first) 3rd local Window point index (index of topmost line) 4th local List of names I also forgot to mention that if the value of a name is a directory, it will appear as "dir", and pressing ENTER will, instead of copying it to the stack, move the catalog into the directory. Here is a small example of how the standard catalog configuration can be used to view a catalog of random strings: @ Call with list of strings on level 1 << LIST-> RCLF -> N F << 1 N START #5B15 SYSEVAL @ String --> Name N ROLL NEXT N ->LIST #3AC0 SYSEVAL SWAP -59 SF @ Fast catalog #47BF0 SYSEVAL @ Walk F STOF >> >> It's probably a better idea to set up a custom configuration with a new key program for the terminal emulator, though. Happy hacking! -- Jan Brittenson bson@ai.mit.edu Read my lisp: no new classes!
akcs.waterman@hpcvbbs.UUCP (Jason Todd Waterman) (04/01/91)
Hi there, Does anyone know how to exit the catalog from within a program.? I haave been able to make a TMENU to use with the catalog and run several programs from within the catalog, but have found no way to leave the catalog, other than with the ATTN key. Does anyone know if there is some Syseval or local variable one could use to exit the CATALOG? Maybe even a SYSEVAL for the ATTN key would be great. Thanks