yaronn / blessed-contrib

Build terminal dashboards using ascii/ansi art and javascript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Canvas calcSize question

wiseman opened this issue · comments

Why does canvas compute its size in this way, quadrupling height and doubling width and subtracting... 12?

Canvas.prototype.calcSize = function() {
  this.canvasSize = {width: this.width*2-12, height: this.height*4};
};

Looks like @mvaladas subtracted 12 in commit cc4f597