Commit 37a9a001 authored by rswindell's avatar rswindell

2 more uses of the "HOT" @-code:

- "HOT" by itself will set the hot-spot attribute to the *current* attribute
  (just colorize the @-code in your editor the same as you do your cmd keys
  no need to memorize color-code mnemonics)
- "HOT:OFF" will turn off the hot-spot attribute through the end of the text or   util re-enabled
- Use a more greedy/liberal hot-spot matching algoirthm so that hot spots can overlap and the "best" one will be chosen. No way to opt-out of this algorithm (e.g. to use a conservative matching algo) currently.
- Earlier parse of @~ codes to keep text prestine (no parsing of |* or -*)
parent b468feda
......@@ -464,7 +464,6 @@ public:
time_t timeout; /* User inactivity timeout reference */
ulong timeleft_warn; /* low timeleft warning flag */
uint curatr; /* Current Text Attributes Always */
uint hot_attr; /* Auto-Mouse hot-spot attribute (when non-zero) */
uint attr_stack[64]; /* Saved attributes (stack) */
int attr_sp; /* Attribute stack pointer */
long lncntr; /* Line Counter - for PAUSE */
......@@ -804,13 +803,15 @@ public:
char inkey(long mode, unsigned long timeout=0);
char handle_ctrlkey(char ch, long mode=0);
long mouse_mode; // Mouse reporting mode flags
uint hot_attr; // Auto-Mouse hot-spot attribute (when non-zero)
bool liberal_hotspots;
link_list_t mouse_hotspots; // Mouse hot-spots
void add_hotspot(struct mouse_hotspot*);
struct mouse_hotspot* add_hotspot(struct mouse_hotspot*);
struct mouse_hotspot* add_hotspot(char cmd, long minx = -1, long maxx = -1, long y = -1);
struct mouse_hotspot* add_hotspot(ulong num, long minx = -1, long maxx = -1, long y = -1);
struct mouse_hotspot* add_hotspot(const char* cmd, long minx = -1, long maxx = -1, long y = -1);
void clear_hotspots(void);
void scroll_hotspots(long count);
void add_hotspot(char cmd, long minx = -1, long maxx = -1, long y = -1);
void add_hotspot(ulong num, long minx = -1, long maxx = -1, long y = -1);
void add_hotspot(const char* cmd, long minx = -1, long maxx = -1, long y = -1);
void set_mouse(long mode);
/* prntfile.cpp */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment