Subj : custom matrix login menu
To   : Lesser Keys
From : Nightfox
Date : Wed Apr 15 2015 06:17 pm

 Re: custom matrix login menu
 By: Lesser Keys to Nightfox on Wed Apr 15 2015 15:07:14

LK> Thanks! How do I set a command key for the arrow keys. For example if The
LK> user presses down one time, so that the highlighted text box moves down
LK> one space. Also, how does one set a command key for two spaces down?
LK> Sorry I am a newbie! :P

Well I haven't actually done much Baja for Synchronet (I mainly write mods in
JavaScript), so there may be someone else more knowledgeable on that than I am.
But responding to a keypress in Baja is just a matter of using the cmdkey
command.  In JavaScript, the down arrow key is defined as '\x0a' - maybe the
same can be used in Baja?  I'm not sure.  sbbsdefs.js (in sbbs\exec\load) has
definitions (for JavaScript) for the arrow keys and others - Search for KEY_UP
to find the section where the arrow keys are defined there.

Also, the following is the Baja documentation, which should explain how to
respond to keypresses and everything else Baja can do:
http://www.synchro.net/docs/baja.html

Nightfox

---
� Synchronet � Digital Distortion BBS - digitaldistortionbbs.com