Numerous minor fixes needed for echomail control, register control. Revert our page object, if the requested page doesnt exist. Rework default pages.
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
const SESSION_ANSITEX = (1<<1);
|
||||
const SESSION_EXT = 'tex';
|
||||
var SESSION_EXT = 'tex';
|
||||
|
||||
const FRAME_WIDTH = 80;
|
||||
const FRAME_HEIGHT = 22;
|
||||
const FRAME_PROVIDER_LENGTH = 55;
|
||||
const FRAME_PAGE_LENGTH = 13;
|
||||
const FRAME_COST_LENGTH = 10;
|
||||
const FRAME_ATTR_LENGTH = 0; // Space that an attribute takes
|
||||
var FRAME_WIDTH = 80;
|
||||
var FRAME_HEIGHT = 22;
|
||||
var FRAME_PROVIDER_LENGTH = 55;
|
||||
var FRAME_PAGE_LENGTH = 13;
|
||||
var FRAME_COST_LENGTH = 10;
|
||||
var FRAME_ATTR_LENGTH = 0; // Space that an attribute takes
|
||||
|
||||
/**
|
||||
* This function converts ANSI text into an array of attributes
|
||||
@@ -359,7 +359,7 @@ function rawtoattrs(contents,width,yoffset,xoffset,debug) {
|
||||
|
||||
/* parse dynamic value field */
|
||||
// @todo remove the trailing ESC \ to end the field, just use a control code ie: ^E \x05 (Enquiry) or ^Z \x26 (Substitute)
|
||||
var m = line.match(/^\x1bX(([a-zA-Z._:^;]+[0-9]?;-?[0-9^;]+)([;]?[^;]+)?)\x1b\\/);
|
||||
var m = line.match(/^\x1bX(([a-zA-Z._:\-%^;]+[0-9]?;-?[0-9^;]+)([;]?[^;]+)?)\x1b\\/);
|
||||
if (m !== null) {
|
||||
// full string that matched
|
||||
match = m.shift();
|
||||
@@ -448,7 +448,7 @@ function SessionProtocol() {
|
||||
this.settings.INACTIVE = '\1n\1h\1RINACTIVITY DISCONNECT';
|
||||
this.settings.NOACTION = '\1n\1h\1RNO ACTION PERFORMED';
|
||||
this.settings.BASESTAR = '\1N\1G\1H*';
|
||||
this.settings.INVALID_CODE = '\1n\1h\1RINVAID CODE, PLEASE TRY AGAIN *00';
|
||||
this.settings.INVALID_CODE = '\1n\1h\1RINVAID CODE, PLEASE TRY AGAIN **';
|
||||
this.settings.TOKEN_EMAIL = '\1n\1h\1RTOKEN EMAILED TO YOU...';
|
||||
this.settings.TOKEN_SENT = '\1n\1h\1RTOKEN SENT, PLEASE ENTER TOKEN';
|
||||
this.settings.INVALID_EMAIL = '\1n\1h\1RINVAID EMAIL, PLEASE TRY AGAIN *00';
|
||||
|
@@ -1,12 +1,12 @@
|
||||
const SESSION_VIEWDATA = (1<<2);
|
||||
const SESSION_EXT = 'vtx';
|
||||
var SESSION_EXT = 'vtx';
|
||||
|
||||
const FRAME_WIDTH = 40;
|
||||
const FRAME_HEIGHT = 22;
|
||||
const FRAME_PROVIDER_LENGTH = 23;
|
||||
const FRAME_PAGE_LENGTH = 11;
|
||||
const FRAME_COST_LENGTH = 6;
|
||||
const FRAME_ATTR_LENGTH = 1; // Space that an attribute takes
|
||||
var FRAME_WIDTH = 40;
|
||||
var FRAME_HEIGHT = 22;
|
||||
var FRAME_PROVIDER_LENGTH = 23;
|
||||
var FRAME_PAGE_LENGTH = 11;
|
||||
var FRAME_COST_LENGTH = 6;
|
||||
var FRAME_ATTR_LENGTH = 1; // Space that an attribute takes
|
||||
|
||||
const VIEWDATA_LEFT = '\x08';
|
||||
const VIEWDATA_RIGHT = '\x09';
|
||||
@@ -452,7 +452,7 @@ function SessionProtocol() {
|
||||
this.settings.INACTIVE = ascii(27)+'AINACTIVITY DISCONNECT';
|
||||
this.settings.NOACTION = ascii(27)+'ANO ACTION PERFORMED';
|
||||
this.settings.BASESTAR = ascii(27)+'B*';
|
||||
this.settings.INVALID_CODE = ascii(27)+'AINVAID CODE, PLEASE TRY AGAIN *00';
|
||||
this.settings.INVALID_CODE = ascii(27)+'AINVAID CODE, PLEASE TRY AGAIN **';
|
||||
this.settings.TOKEN_EMAIL = ascii(27)+'ATOKEN EMAILED TO YOU...';
|
||||
this.settings.TOKEN_SENT = ascii(27)+'ATOKEN SENT, PLEASE ENTER TOKEN';
|
||||
this.settings.INVALID_EMAIL = ascii(27)+'AINVAID EMAIL, PLEASE TRY AGAIN *00';
|
||||
|
Reference in New Issue
Block a user