aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlee14 <Alee14498@gmail.com>2017-08-10 22:54:37 -0400
committerAlee14 <Alee14498@gmail.com>2017-08-10 22:54:37 -0400
commit2279fbabb743de7cfdb3b6c1755d56d4ecac96f7 (patch)
treeb7df9efc2326c3b91992c3bfca707018fda7cea2
parentae9743b7c36dc2b8223c3f9e9c95bb05bf97dfbc (diff)
downloadAleeBot-2279fbabb743de7cfdb3b6c1755d56d4ecac96f7.tar.gz
AleeBot-2279fbabb743de7cfdb3b6c1755d56d4ecac96f7.tar.bz2
AleeBot-2279fbabb743de7cfdb3b6c1755d56d4ecac96f7.zip
Adding features
-rw-r--r--abblessed.js66
1 files changed, 66 insertions, 0 deletions
diff --git a/abblessed.js b/abblessed.js
index fed6798..b0946ae 100644
--- a/abblessed.js
+++ b/abblessed.js
@@ -42,6 +42,72 @@ var titleBox = blessed.text({
screen.append(titleBox);
+var logBox = blessed.log({
+
+ top: 1,
+
+ left: 0,
+
+ width: "100%",
+
+ height: "100%-4",
+
+ tags: true,
+
+ style: {
+
+ fg: 'white',
+
+ bg: 'black',
+
+ scrollbar: {
+
+ bg: 'white'
+
+ }
+
+ },
+
+ padding: {
+
+ left: 1 // ,
+
+ // bottom: 2
+
+ },
+
+ scrollable: true,
+
+ alwaysScroll: true,
+
+ scrollOnInput: true,
+
+ scrollbar: true //,
+
+ //clickable: true
+
+});
+
+screen.append(logBox);
+
+
+
+function clearBoxes() {
+
+ while (lockBox.length > 0) {
+
+ var box = lockBox.pop();
+
+ box.hide();
+
+ box.destroy();
+
+ }
+
+
+
+}
+
// Quit on Escape, q, or Control-C.
screen.key(['escape', 'q', 'C-c'], function(ch, key) {
return process.exit(0);