===== Macro Trigger Patch by Mogami ==== macropatch-v301.txt -- This text file macropatch-v301.diff -- macro trigger patch for Angband 3.0.1 This patch 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 like ^__FFBE\r or ^_O_FF53\r, but in more smart style, such like \[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 all diff lines for main-win.c from the macropatch-???.diff . Mogami mogami@het.ph.tsukuba.ac.jp