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

Added terminal special key mapping definitions (e.g. HOME->CTRL-B).

Removed some unused constant definitions/macros.
Updated copyright date (to 2016).
parent e7d019b4
......@@ -56,8 +56,8 @@
#define VERSION_NOTICE "Synchronet BBS for "PLATFORM_DESC\
" Version " VERSION
#define SYNCHRONET_CRC 0x9BCDD162
#define COPYRIGHT_NOTICE "Copyright 2015 Rob Swindell"
#define COPYRIGHT_CRC 0x24F092F2
#define COPYRIGHT_NOTICE "Copyright 2016 Rob Swindell"
#define COPYRIGHT_CRC 0x5891b729
#define Y2K_2DIGIT_WINDOW 70
......@@ -186,18 +186,7 @@ typedef struct js_callback {
#define NM_7BITONLY (1L<<16) /* Except 7-bit input only (E71 terminals) */
#define NM_NOPAUSESPIN (1L<<18) /* No spinning cursor at pause prompt */
#define NM_CLOSENODEDAB (1L<<19) /* Keep node.dab file closed (for Samba) */
/* Miscellaneous Modem Settings (mdm_misc) */
#define MDM_CTS (1<<0) /* Use hardware send flow control */
#define MDM_RTS (1<<1) /* Use hardware recv flow control */
#define MDM_STAYHIGH (1<<2) /* Stay at highest DTE rate */
#define MDM_CALLERID (1<<3) /* Supports Caller ID */
#define MDM_DUMB (1<<4) /* Just watch DCD for answer - dumb modem */
#define MDM_NODTR (1<<5) /* Don't drop DTR for hang-up */
#define MDM_KNOWNRES (1<<6) /* Allow known result codes only */
#define MDM_VERBAL (1<<7) /* Use verbal result codes */
/* Bit values for level_misc[x] */
#define LEVEL_EXPTOLVL (1<<0) /* Expire to level_expireto[x] */
#define LEVEL_EXPTOVAL (1<<1) /* Expire to val[level_expireto[x]] */
......@@ -454,9 +443,7 @@ typedef enum { /* Values for xtrn_t.event */
#define EDIT_TABSIZE 4 /* Tab size for internal message/line editor */
#define SWAP_NONE 0x80 /* Allow no swapping for executables */
#define DSTSDABLEN 50 /* Length of dsts.dab file */
/* Console I/O Bits (console) */
......@@ -642,8 +629,17 @@ typedef enum { /* Values for xtrn_t.event */
#define NOPAUSESPIN (1L<<24) /* No spinning cursor at pause prompt */
#define TERM_FLAGS (ANSI|COLOR|NO_EXASCII|RIP|WIP|HTML)
#define CLREOL 256 /* Character to erase to end of line */
/* Special terminal key mappings */
#define TERM_KEY_HOME CTRL_B
#define TERM_KEY_END CTRL_E
#define TERM_KEY_UP CTRL_CARET
#define TERM_KEY_DOWN CTRL_J
#define TERM_KEY_LEFT CTRL_CLOSE_BRACKET
#define TERM_KEY_RIGHT CTRL_F
#define TERM_KEY_INSERT CTRL_V
#define TERM_KEY_DELETE DEL
#define TERM_KEY_ABORT CTRL_C
/* Online status (online) */
#define ON_LOCAL 1 /* Online locally */
......
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