Add MNE:<low>[:high][:cmd] @-code for mnemonic string attribute control
The "default" mnemonic string attributes are still set in ctrl/attr.cfg, but now, each mnemonic string (e.g. from text.dat or passed to JS console.mnemonics()) can include a "MNE:" @-code to over-ride the default mnemonic string attributes (low, high, and command). If the "high" attribute isn't specified, it defaults to the same color as the "low" attribute with the "high intensity" flag flipped. The "cmd" attribute defaults to whatever was included in the attr.cfg, if not specified. Technically, the separator between the attributes can be any non-valid attribute character (e.g. symbol). Renamed (really old function) attrstr() to strtoattr() since its usage now more closely resembles other std C strto* functions (has an 'endptr' arg).
parent
27f42c16
No related branches found
No related tags found
Showing
- src/sbbs3/atcodes.cpp 12 additions, 1 deletionsrc/sbbs3/atcodes.cpp
- src/sbbs3/getkey.cpp 11 additions, 6 deletionssrc/sbbs3/getkey.cpp
- src/sbbs3/js_console.cpp 2 additions, 2 deletionssrc/sbbs3/js_console.cpp
- src/sbbs3/load_cfg.c 1 addition, 1 deletionsrc/sbbs3/load_cfg.c
- src/sbbs3/sbbs.h 3 additions, 0 deletionssrc/sbbs3/sbbs.h
- src/sbbs3/scfglib.h 1 addition, 1 deletionsrc/sbbs3/scfglib.h
- src/sbbs3/scfglib2.c 7 additions, 1 deletionsrc/sbbs3/scfglib2.c
Loading
Please register or sign in to comment