Table of Contents

Mouse-Enable your Synchronet BBS

The Synchronet Terminal Server (v3.18a and later) supports XTerm-compatible and SyncTERM-compatible mouse reporting:

Some modules (e.g. Deuce's Lightbar command shell, Synchronet Minesweeper) may manually enable and capture mouse events. However, for the most part, mouse-enablement is achieved by utilizing special codes/sequences to define mouse “hot-spots” in display strings and files. In Synchronet v3.20, mouse hot-spot support may be disabled by the sysop by setting SCFG->System->Toggles->Mouse Hot-spots in Menus/Prompts to “No”.

Hot-spots

Hot-spots are rectangular areas (regions) of the terminal screen that when clicked with the left-mouse button will cause the terminal server to inject one or more characters into the keyboard input buffer. Typically, the text displayed in a hot-spot (e.g. an ASCII character representing a command key for a menu) will be the same text that is sent in response to a click of the hot-spot, but that does not always have to be the case. Hot-spot regions can be defined that occupy multiple screen columns but a single hot-spot region cannot occupy more than one screen row.

There are 2 types of hot-spots:

Hungy and Strict hot-spots can be combined on the same terminal screen and even the same screen row.

Hot-spot regions may overlap. The most recently defined hot-spots (e.g. further to the right on a row or further down in a file) have priority over earlier defined hot-spots.

Hungry Hot-spots

Hungry hot-spots are hot-spots that can be triggered when clicking outside of the defined hot-spot dimensions. Hungry hot-spots enable the BBS user to click on a word or even a line rather than a single character to invoke a desired action. Hungry hot-spots are the default and preferred hot-spot type.

Strict Hot-spots

Strict hot-spots are hot-spots that will only be trigger when a BBS user clicks their mouse within the strictly-defined dimensions of the hot-spot.

Create

There are 4 ways to create mouse hot-spots:

Mnemonics

Mnemonics are strings (e.g. from the text.dat file) that may contain special characters to denote command-keys:

Mnemonic strings are mainly interpreted and displayed by the SBBS C/C++ methods but may also be displayed with the JavaScript console.mnemonics() method or the Baja MNEMONICS function.

Attribute Codes

So-called Ctrl-A Codes can be used to create single-character hot-spots in virtually all text strings and files:

Message Variables

Message variables can be a convenient way to create hot-spots in display files (e.g. menu files), especially when using ANSI editors.

JavaScript

FIXME

Destroy

There are 2 ways to destroy mouse hot-spots:

Any clear-screen operation will also clear any/all mouse hot-spots.

See Also