From f348e06d86d25a07dd19c3f3af71caaddc8c2553 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Wed, 8 Jul 2015 22:07:25 -0600 Subject: [PATCH] * Some WIP on FSE --- core/multi_line_edit_text_view.js | 2 + core/servers/telnet.js | 2 +- .../art/demo_fse_netmail_footer_edit_menu.ans | Bin 0 -> 304 bytes mods/fse.js | 157 +++++++++++++----- mods/menu.json | 9 + 5 files changed, 126 insertions(+), 44 deletions(-) create mode 100644 mods/art/demo_fse_netmail_footer_edit_menu.ans diff --git a/core/multi_line_edit_text_view.js b/core/multi_line_edit_text_view.js index 5c2b0a32..d10c60c2 100644 --- a/core/multi_line_edit_text_view.js +++ b/core/multi_line_edit_text_view.js @@ -53,6 +53,8 @@ var _ = require('lodash'); // * Index pos % for emit scroll events // * Some of this shoudl be async'd where there is lots of processing (e.g. word wrap) // * Fix backspace when col=0 (e.g. bs to prev line) +// * Add back word delete +// * var SPECIAL_KEY_MAP_DEFAULT = { diff --git a/core/servers/telnet.js b/core/servers/telnet.js index 2a17c269..b7efcb80 100644 --- a/core/servers/telnet.js +++ b/core/servers/telnet.js @@ -587,7 +587,7 @@ TelnetClient.prototype.handleSbCommand = function(evt) { // * Map ROWS -> 'termHeight' and only update if ours is 0 // * Add any new variables, ignore any existing // - Object.keys(evt.envVars).forEach(function onEnv(name) { + Object.keys(evt.envVars || {} ).forEach(function onEnv(name) { if('TERM' === name && 'unknown' === self.term.termType) { self.setTermType(evt.envVars[name]); } else if('COLUMNS' === name && 0 === self.term.termWidth) { diff --git a/mods/art/demo_fse_netmail_footer_edit_menu.ans b/mods/art/demo_fse_netmail_footer_edit_menu.ans new file mode 100644 index 0000000000000000000000000000000000000000..bb571446f997308a59b28fc09d766027db4859e6 GIT binary patch literal 304 zcmb1+Hn29dHZia^Hptc1r6$nk<*HGT1{!Z{nyc#JYbYHJw8zxi*c{B$2-TF123c#G z3zRT&hAIS!0ojHqf