(bar)
| 88 | |
| 89 | // remove a bar from the stack |
| 90 | remove(bar){ |
| 91 | // find element |
| 92 | const index = this.bars.indexOf(bar); |
| 93 | |
| 94 | // element found ? |
| 95 | if (index < 0){ |
| 96 | return false; |
| 97 | } |
| 98 | |
| 99 | // remove element |
| 100 | this.bars.splice(index, 1); |
| 101 | |
| 102 | // force update |
| 103 | this.update(); |
| 104 | |
| 105 | // clear bottom |
| 106 | this.terminal.newline(); |
| 107 | this.terminal.clearBottom(); |
| 108 | |
| 109 | return true; |
| 110 | } |
| 111 | |
| 112 | // internal update routine |
| 113 | update(){ |
nothing calls this directly
no test coverage detected