Skip to content

Commit

Permalink
Disable mouse mode so mouse select works
Browse files Browse the repository at this point in the history
  • Loading branch information
jrudess committed Dec 25, 2017
1 parent df0a058 commit 3c67cf7
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 46 deletions.
53 changes: 35 additions & 18 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
"rules": {
"accessor-pairs": "error",
"array-bracket-newline": "error",
"array-bracket-spacing": "error",
"array-bracket-spacing": [
"error",
"never"
],
"array-callback-return": "error",
"array-element-newline": "off",
"arrow-body-style": "error",
Expand All @@ -26,7 +29,10 @@
}
],
"block-scoped-var": "error",
"block-spacing": "off",
"block-spacing": [
"error",
"always"
],
"brace-style": [
"error",
"1tbs",
Expand All @@ -39,7 +45,13 @@
"capitalized-comments": "off",
"class-methods-use-this": "error",
"comma-dangle": "error",
"comma-spacing": "error",
"comma-spacing": [
"error",
{
"after": true,
"before": false
}
],
"comma-style": [
"error",
"last"
Expand Down Expand Up @@ -82,10 +94,7 @@
"id-blacklist": "error",
"id-length": "off",
"id-match": "error",
"implicit-arrow-linebreak": [
"off",
"beside"
],
"implicit-arrow-linebreak": "off",
"indent": "error",
"indent-legacy": "error",
"init-declarations": "off",
Expand Down Expand Up @@ -120,7 +129,6 @@
"error",
"separate-lines"
],
"multiline-ternary": "off",
"new-cap": "error",
"new-parens": "error",
"newline-after-var": "off",
Expand Down Expand Up @@ -151,7 +159,7 @@
"no-implicit-globals": "error",
"no-implied-eval": "error",
"no-inline-comments": "off",
"no-invalid-this": "off",
"no-invalid-this": "error",
"no-iterator": "error",
"no-label-var": "error",
"no-labels": "error",
Expand Down Expand Up @@ -202,7 +210,7 @@
"no-throw-literal": "error",
"no-trailing-spaces": "error",
"no-undef-init": "error",
"no-undefined": "off",
"no-undefined": "error",
"no-underscore-dangle": "off",
"no-unmodified-loop-condition": "error",
"no-unneeded-ternary": "error",
Expand Down Expand Up @@ -234,11 +242,14 @@
"object-shorthand": "off",
"one-var": "off",
"one-var-declaration-per-line": "error",
"operator-assignment": "error",
"operator-assignment": [
"error",
"always"
],
"operator-linebreak": "error",
"padded-blocks": "off",
"padding-line-between-statements": "error",
"prefer-arrow-callback": "off",
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-destructuring": "off",
"prefer-numeric-literals": "error",
Expand Down Expand Up @@ -272,19 +283,25 @@
"sort-keys": "off",
"sort-vars": "error",
"space-before-blocks": "error",
"space-before-function-paren": [
"error",
"never"
],
"space-before-function-paren": "off",
"space-in-parens": [
"error",
"never"
],
"space-infix-ops": "error",
"space-unary-ops": "error",
"spaced-comment": "error",
"spaced-comment": [
"error",
"always"
],
"strict": "off",
"switch-colon-spacing": "error",
"switch-colon-spacing": [
"error",
{
"after": true,
"before": false
}
],
"symbol-description": "error",
"template-curly-spacing": "error",
"template-tag-spacing": "error",
Expand Down
14 changes: 0 additions & 14 deletions .jshintrc

This file was deleted.

6 changes: 2 additions & 4 deletions cb.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,7 @@ class Cb extends site.Site {
queries.push(this.checkStreamerState(batch[i]));
}

return Promise.all(queries).then(function() {
return true;
}).catch(function(err) {
return Promise.all(queries).then(() => true).catch((err) => {
me.errMsg(err.toString());
});
}
Expand All @@ -163,7 +161,7 @@ class Cb extends site.Site {
this.render();

const nms = [];
this.streamerList.forEach(function(value) {
this.streamerList.forEach((value) => {
nms.push(value.nm);
});

Expand Down
15 changes: 6 additions & 9 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const logbody = blessed.box({
height: "34%",
width: "100%",
keys: true,
mouse: true,
mouse: false,
alwaysScroll: true,
scrollable: true,
scrollbar: {
Expand All @@ -55,7 +55,7 @@ const inputBar = blessed.textbox({
height: 1,
width: "100%",
keys: true,
mouse: true,
mouse: false,
inputOnFocus: true,
style: {
fg: "white",
Expand Down Expand Up @@ -157,14 +157,11 @@ function sleep(time) {

function mainSiteLoop(site) {

Promise.try(() => {
Promise.try(() => {
site.checkFileSize(config.captureDirectory, config.maxByteSize);
}).then(() =>
site.processUpdates()
).then((bundle) =>
site.updateStreamers(bundle, 1)
).then((bundle) =>
site.updateStreamers(bundle, 0)
}).then(() => site.processUpdates()
).then((bundle) => site.updateStreamers(bundle, 1)
).then((bundle) => site.updateStreamers(bundle, 0)
).then((bundle) => {
let streamersToCap = [];
if (bundle.dirty) {
Expand Down
2 changes: 1 addition & 1 deletion site.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class Site {
height: height,
width: width,
keys: true,
mouse: true,
mouse: false,
alwaysScroll: true,
scrollable: true,
draggable: false,
Expand Down

0 comments on commit 3c67cf7

Please sign in to comment.