From a320a05c998dce9d568a8fa3db7f728ee01e84d9 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Mon, 14 Sep 2015 23:02:09 -0600 Subject: [PATCH] * Minor tweak to quoting * Notes / TODO items --- core/fse.js | 6 +++++- core/multi_line_edit_text_view.js | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/core/fse.js b/core/fse.js index d1939b7b..3996a174 100644 --- a/core/fse.js +++ b/core/fse.js @@ -573,7 +573,8 @@ function FullScreenEditorModule(options) { function clearAndDisplayArt(callback) { console.log(self.header.height); self.client.term.rawWrite( - ansi.goto(self.header.height + 1, 1)); + ansi.goto(self.header.height + 1, 1) + + ansi.deleteLine(24 - self.header.height)); //ansi.eraseLine(2)); theme.displayThemeArt( { name : self.menuConfig.config.art.quote, client : self.client }, function displayed(err, artData) { @@ -604,6 +605,9 @@ function FullScreenEditorModule(options) { function loadQuoteLines(callback) { // :TODO: MLTEV's word wrapping -> line[] stuff needs to be made a public API. This can then be used here and elsewhere. // ...should not be too bad to do at all + // ...probably do want quote markers in place here though, e.g. " Nu> Said some things" + // ...this could be handled via message.getQuoteLines(...) => [] + self.viewControllers.quoteBuilder.getView(3).setItems(['Someone said some shit', 'then they said more shit', 'and what not...', 'hurp durp']); callback(null); }, diff --git a/core/multi_line_edit_text_view.js b/core/multi_line_edit_text_view.js index f24cf834..8e4b0972 100644 --- a/core/multi_line_edit_text_view.js +++ b/core/multi_line_edit_text_view.js @@ -1059,7 +1059,7 @@ MultiLineEditTextView.prototype.setFocus = function(focused) { MultiLineEditTextView.prototype.setText = function(text) { //text = require('fs').readFileSync('/home/nuskooler/Downloads/test_text.txt', { encoding : 'utf-8'}); - this.textLines = [ ]; + //this.textLines = [ ]; this.insertRawText(text); if(this.isEditMode()) {