Initial changes to support MODE7 graphics natively
26 unresolved threads
26 unresolved threads
Similar to PETSCII it will answer on a dedicated port.
Merge request reports
Activity
assigned to @rswindell
- Resolved by Rob Swindell
- Resolved by Rob Swindell
- Resolved by Rob Swindell
- exec/mode7/mode7_chat.js 0 → 100644
13 if (!options) 14 options = load("modopts.js", "chat_sec"); 15 if (!options) 16 options = {}; 17 if (options.irc === undefined) 18 options.irc = true; 19 if (options.irc_server === undefined) 20 options.irc_server = "irc.synchro.net 6667"; 21 if (options.irc_channel === undefined) 22 options.irc_channel = "#Synchronet"; 23 if (options.irc_seclevel === undefined) 24 options.irc_seclevel = 90; 25 if (options.finger === undefined) 26 options.finger = true; 27 if (options.imsg === undefined) 28 options.imsg = true; - exec/mode7/mode7_chat.js 0 → 100644
127 break; 128 case 'M': 129 bbs.exec_xtrn("MULTIRELAYCHAT"); 130 break; 131 case '?': 132 if(user.settings & USER_EXPERT) 133 bbs.menu("mode7/mode7_chat"); 134 break; 135 case 'Q': 136 break menu; 137 138 default: 139 console.clear(); 140 break; 141 } 142 } - exec/mode7/mode7_email.js 0 → 100644
48 49 49 50 while(bbs.online && !js.terminated) { 50 51 if(bbs.menu("../bullseye", P_NOERROR)) { 51 console.mnemonics("\r\nEnter number of bulletin or [~Quit]: "); 52 console.mnemonics(gettext("\r\nEnter number of bulletin or [~Quit]: ")); - exec/mode7.js 0 → 100644
18 22 console.question = console.question.substring(2); 19 23 } 20 24 21 console.putmsg("\x01n\x01b\x01h[\x01c@CHECKMARK@\x01b] \x01y@QUESTION->@? @CLEAR_HOT@", P_NOABORT); 25 console.putmsg(options.noyes_question || "\x01n\x01b\x01h[\x01c@CHECKMARK@\x01b] \x01y@QUESTION->@? @CLEAR_HOT@", P_NOABORT); 5663 5664 sbbs->outcom(PETSCII_UPPERLOWER); 5664 5665 } 5665 5666 5667 if (inet_addrport(&local_addr) == startup->mode7_port) { 5668 sbbs->autoterm = MODE7; 5669 sbbs->cols = 40; 5670 sbbs->rows = 25; 1961 1968 } 1962 1969 if (term_supports(PETSCII)) 1963 1970 petscii_convert(bp, output_len); 1971 else if (term_supports(MODE7)) - src/xpdev/mode7defs.h 0 → 100644
- src/xpdev/mode7defs.h 0 → 100644
6 * * 7 * Copyright Rob Swindell - http://www.synchro.net/copyright.html * 8 * * 9 * This library is free software; you can redistribute it and/or * 10 * modify it under the terms of the GNU Lesser General Public License * 11 * as published by the Free Software Foundation; either version 2 * 12 * of the License, or (at your option) any later version. * 13 * See the GNU Lesser General Public License for more details: lgpl.txt or * 14 * http://www.fsf.org/copyleft/lesser.html * 15 * * 16 * For Synchronet coding style and modification guidelines, see * 17 * http://www.synchro.net/source.html * 18 * * 19 * Note: If this box doesn't appear square, then you need to fix your tabs. * 20 ****************************************************************************/ 21 #ifndef _MODE7DFS_H_ - src/xpdev/mode7defs.h 0 → 100644
51 52 /* Cursor movement */ 53 MODE7_LEFT = 8, 54 MODE7_RIGHT = 9, 55 MODE7_DOWN = 10, 56 MODE7_UP = 11, 57 MODE7_HOME = 30, 58 MODE7_CLEAR = 12, 59 /* Symbols (which don't align with ASCII) */ 60 MODE7_BRITPOUND = 96, 61 MODE7_QUARTER = 123, 62 MODE7_HALF = 92, 63 MODE7_THREE_QUARTER = 125, 64 MODE7_DIVIDE = 126 65 /* Replacement chars (missing ASCII chars) */ 66 // PETSCII_BACKSLASH = '/', // the 109 graphics char is an 'M' in shifted/text mode :-( - text/bullseye.m7 0 → 100755
- text/system.m7 0 → 100644
- src/xpdev/mode7defs.h 0 → 100644
19 * Note: If this box doesn't appear square, then you need to fix your tabs. * 20 ****************************************************************************/ 21 #ifndef _MODE7DFS_H_ 22 #define _MODE7DEFS_H_ 23 24 enum mode7_char { 25 /* Colors */ 26 MODE7_ALPHA_RED = 129, 27 MODE7_ALPHA_GREEN = 130, 28 MODE7_ALPHA_YELLOW = 131, 29 MODE7_ALPHA_BLUE = 132, 30 MODE7_ALPHA_MAGENTA = 133, 31 MODE7_ALPHA_CYAN = 134, 32 MODE7_ALPHA_WHITE = 135, 33 MODE7_FLASH = 136, 34 MODE7_STEADY = 137, 568 568 #define COLDKEYS (1 << 18) /* No hot-keys */ 569 569 #define EXTDESC (1 << 19) /* Extended file descriptions */ 570 570 #define AUTOHANG (1 << 20) /* Auto-hang-up after transfer */ 571 #define WIP_UNUSED (1 << 21) /* Supports WIP terminal emulation */ 571 #define MODE7 (1 << 21) /* BBC Micro Mode 7 terminal support */ 694 695 #define P_REMOTE (1 << 18) /* Only print when online == ON_REMOTE */ 695 696 #define P_INDENT (1 << 19) /* Indent lines to current cursor column */ 696 697 #define P_ATCODES (1 << 20) /* Trusted @-codes in formatted string */ 698 #define P_MODE7 (1 << 21) /* Message is native Mode 7 */
Please register or sign in to reply