diff --git a/core/ansi_term.js b/core/ansi_term.js index 15766a4e..c2cc1d48 100644 --- a/core/ansi_term.js +++ b/core/ansi_term.js @@ -9,6 +9,7 @@ // * http://www.bbsdocumentary.com/library/PROGRAMS/GRAPHICS/ANSI/ansisys.txt // * http://en.wikipedia.org/wiki/ANSI_escape_code // * https://github.com/chjj/term.js/blob/master/src/term.js +// * http://www.inwap.com/pdp10/ansicode.txt // var assert = require('assert'); diff --git a/core/multi_line_edit_text_view.js b/core/multi_line_edit_text_view.js index a7df2f9c..048f9236 100644 --- a/core/multi_line_edit_text_view.js +++ b/core/multi_line_edit_text_view.js @@ -32,14 +32,18 @@ var _ = require('lodash'); // // Editors - BBS // * https://github.com/M-griffin/Enthral/blob/master/src/msg_fse.cpp +// // // Editors - Other // * http://joe-editor.sourceforge.net/ // * http://www.jbox.dk/downloads/edit.c +// * https://github.com/dominictarr/hipster +// +// Implementations - Word Wrap +// * https://github.com/protomouse/synchronet/blob/93b01c55b3102ebc3c4f4793c3a45b8c13d0dc2a/src/sbbs3/wordwrap.c // - // Misc notes -// * See https://github.com/dominictarr/hipster/issues/15 about insert/delete lines +// * https://github.com/dominictarr/hipster/issues/15 (Deleting lines/etc.) // // Blessed // insertLine: CSR(top, bottom) + CUP(y, 0) + IL(1) + CSR(0, height) @@ -1033,7 +1037,7 @@ MultiLineEditTextView.prototype.setFocus = function(focused) { }; MultiLineEditTextView.prototype.setText = function(text) { - text = require('fs').readFileSync('/home/nuskooler/Downloads/test_text.txt', { encoding : 'utf-8'}); + text = require('fs').readFileSync('/home/bashby/Downloads/test_text.txt', { encoding : 'utf-8'}); this.insertRawText(text); this.cursorEndOfDocument(); @@ -1044,10 +1048,6 @@ MultiLineEditTextView.prototype.getData = function() { }; MultiLineEditTextView.prototype.setPropertyValue = function(propName, value) { -/* switch(propName) { - case 'text' : this.setText(value); break; - } -*/ MultiLineEditTextView.super_.prototype.setPropertyValue.call(this, propName, value); }; diff --git a/core/view.js b/core/view.js index b7216f9f..e55c3086 100644 --- a/core/view.js +++ b/core/view.js @@ -214,7 +214,7 @@ View.prototype.setPropertyValue = function(propName, value) { */ break; - case 'submitArgName' : this.submitArgName = value; break; + case 'argName' : this.submitArgName = value; break; } if(/styleSGR[0-9]{1,2}/.test(propName)) { diff --git a/core/view_controller.js b/core/view_controller.js index 8f2f26a0..a39b0dd5 100644 --- a/core/view_controller.js +++ b/core/view_controller.js @@ -411,12 +411,14 @@ ViewController.prototype.loadFromMenuConfig = function(options, cb) { // // * actionValue is a Object: // a) All key/values must exactly match - // b) value is null; The key (view ID) must be present + // b) value is null; The key (view ID or "argName") must be present // in formValue. This is a wildcard/any match. // * actionValue is a Number: This represents a view ID that // must be present in formValue. + // * actionValue is a string: This represents a view with + // "argName" set that must be present in formValue. // - if(_.isNumber(actionValue)) { + if(_.isNumber(actionValue) || _.isString(actionValue)) { if(_.isUndefined(formValue[actionValue])) { return false; } diff --git a/mods/menu.json b/mods/menu.json index 7b918993..4e1578ac 100644 --- a/mods/menu.json +++ b/mods/menu.json @@ -531,7 +531,7 @@ "submit" : { "3" : [ { - "value" : { "3" : null }, + "value" : { "subject" : null }, "action" : "@method:headerSubmit" } ] @@ -551,7 +551,7 @@ "submit" : { "*" : [ { - "value" : 1, + "value" : "message", "action" : "@method:editModeEscPressed" } ]