Commit 2c443f78 authored by rswindell's avatar rswindell
Browse files

One more method of creating a (single-character) mouse hot-spot since @-codes...

One more method of creating a (single-character) mouse hot-spot since @-codes are not universally supported everywhere or always convenient:
  Ctrl-A~
The character immediately following a ^A~ will be added as a single-char mouse hot-spot.
parent 9c70bd95
......@@ -92,6 +92,11 @@ int sbbs_t::bputs(const char *str, long mode)
l++;
if(str[l] == 'Z') /* EOF (uppercase 'Z' only) */
break;
if(str[l] == '~' && str[l + 1] != '\0') {
l++;
add_hotspot(str[l]);
continue;
}
ctrl_a(str[l++]);
continue;
}
......
......@@ -147,6 +147,10 @@ char sbbs_t::putmsg(const char *buf, long mode, long org_cols, JSObject* obj)
}
else if(str[l+1] == 'Z') /* Ctrl-AZ==EOF (uppercase 'Z' only) */
break;
else if(str[l + 1] == '~' && str[l + 2] != '\0') {
add_hotspot(str[l + 2]);
l += 2;
}
else {
bool was_tos = (row == 0);
ctrl_a(str[l+1]);
......
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