* Allow for clients such as ConnectBot that see "home" as 0,0 vs ANSI-BBS standard 1,1 by offsetting CPR values

* Some code cleanup
* Don't assert in View.js setPosition(); Instead, sanatize values
This commit is contained in:
Bryan Ashby 2016-08-14 11:45:31 -06:00
parent cf30389146
commit d50e505bd7
4 changed files with 133 additions and 97 deletions

View file

@ -510,7 +510,6 @@ util.inherits(TelnetClient, baseClient.Client);
///////////////////////////////////////////////////////////////////////////////
TelnetClient.prototype.handleTelnetEvent = function(evt) {
// handler name e.g. 'handleWontCommand'
//const handlerName = 'handle' + evt.command.charAt(0).toUpperCase() + evt.command.substr(1) + 'Command';
const handlerName = `handle${evt.command.charAt(0).toUpperCase()}${evt.command.substr(1)}Command`;
if(this[handlerName]) {
@ -567,7 +566,7 @@ TelnetClient.prototype.handleDoCommand = function(evt) {
};
TelnetClient.prototype.handleDontCommand = function(evt) {
this.connectionDebug(evt, 'dont');
this.connectionDebug(evt, 'DONT');
};
TelnetClient.prototype.handleSbCommand = function(evt) {