aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlee14 <Alee14498@gmail.com>2017-08-10 23:09:43 -0400
committerAlee14 <Alee14498@gmail.com>2017-08-10 23:09:43 -0400
commitcc25357d66b95d7d23468257d6cd166aa1b2e3cd (patch)
treed6238da216313ff03c67a963e006bbeb47dab76b
parentf672d7829be30fc32acb4390eb50f416321ea9df (diff)
downloadAleeBot-cc25357d66b95d7d23468257d6cd166aa1b2e3cd.tar.gz
AleeBot-cc25357d66b95d7d23468257d6cd166aa1b2e3cd.tar.bz2
AleeBot-cc25357d66b95d7d23468257d6cd166aa1b2e3cd.zip
Rolling back things
-rw-r--r--abblessed.js134
1 files changed, 0 insertions, 134 deletions
diff --git a/abblessed.js b/abblessed.js
index 24e838f..aaf6152 100644
--- a/abblessed.js
+++ b/abblessed.js
@@ -108,139 +108,6 @@ function clearBoxes() {
}
-logBox.on('click', function(mouse) {
-
- var x = mouse.x;
-
- var y = mouse.y;
-
-
-
- //var line = logBox.getScreenLines()[y + 1];
-
- var line = logBox.getBaseLine(y - 1);
-
-
-
- //Remove escapes
-
- while (line.indexOf("\x1b") != -1) {
-
- var removeStart = line.indexOf("\x1b");
-
- var removeEnd = line.indexOf("m", removeStart);
-
- line = line.replace(line.slice(removeStart, removeEnd + 1), "");
-
- }
-
- //logBox.log(line);
-
-
-
- //Get word around line
-
- var previousSpace = line.lastIndexOf(" ", x - 2);
-
- var nextSpace = line.indexOf(" ", x - 2);
-
-
-
- previousSpace++;
-
-
-
- if (nextSpace == -1) {
-
- nextSpace = line.length;// - previousSpace;
-
- }
-
- var word = line.substring(previousSpace, nextSpace);
-
-
-
- if (word.startsWith("[")) word = word.substr(1);
-
- if (word.endsWith("]")) word = word.substr(0, word.length - 2);
-
-
-
- var goUpwards = false;
-
- var top = y + 1;
-
- if (top + 7 > screen.height) {
-
- top = y - 7;
-
- goUpwards = true;
-
- }
-
-
-
- var left = x - 10;
-
- if (left + 50 > screen.width) {
-
- left = screen.width - 50;
-
- } else if (left < 0) {
-
- left = 0;
-
- }
-
-
-
- var boxOptions = {
-
- top: top,
-
- left: left,
-
- width: 50,
-
- style: {
-
- fg: "black",
-
- bg: "white",
-
- border: {
-
- fg: 'white',
-
- bg: 'black'
-
- }
-
- },
-
- border: {
-
- type: "line"
-
- },
-
- padding: {
-
- left: 2,
-
- top: 1,
-
- right: 2,
-
- bottom: 1
-
- }
-
- };
-
-
-
- clearBoxes();
// Quit on Escape, q, or Control-C.
screen.key(['q', 'C-c'], function(ch, key) {
@@ -251,4 +118,3 @@ screen.key(['q', 'C-c'], function(ch, key) {
// Render the screen.
screen.render();
-});