===== Macro Trigger Patch by Mogami ==== 'macropatch.tar.gz' contains 7 files: macropatch.txt -- This text file macropatch-ang293.diff -- macro trigger patch for Angband 2.9.3 macropatch-pern512.diff -- macro trigger patch for PernAngband 5.1.2 macropatch-gum220c.diff -- macro trigger patch for Gumband 2.2.0c pref-x11.prf -- replacement for the lib/{pref,user}/pref-x11.prf pref-win.prf -- replacement for the lib/{pref,user}/pref-win.prf pref-mac.prf -- replacement for the lib/{pref,user}/pref-mac.prf The patches modifies how macro trigger keys are displayed on screen and written in .prf files. And these trigger keys are no longer displayed in ugly key code style, such as ^__FFBE\r or ^_O_FF53\r, but in smart style, such as \[F1] or \[alt-Right]. Since you don't need to write key code, you can easily write .prf files by hand. # F1-key A:foo P:\[F1] # shift-key + alt-key + Home-key A:bar P:\[shift-alt-HOME] # alt-key + 'J' A:foobar P:\[alt-J] These modification also means user's .prf files become portable between different port. The key names are defined in pref-???.prf files as below. pref-x11.prf, pref-win.prf and pref-mac.prf are included in this archive. And you can write down pref-???.prf files for other port by hand. T:&x#:CSA:control-:shift-:alt- ... T:A:1E T:S:1F T:D:20 ... T:F1:3B T:F2:3C T:F3:3D ... Additionally the patches include modification of main-win.c; which allows use of combinations of alt-key and an alphabet key as macro trigger. This modification can be omitted by simply removing diff lines for main-win.c from the macropatch-???.diff . Mogami mogami@het.ph.tsukuba.ac.jp