File tree Expand file tree Collapse file tree 5 files changed +5
-6
lines changed Expand file tree Collapse file tree 5 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,7 @@ function clear() {
25
25
}
26
26
27
27
function init ( ) {
28
- canvas = tc ( { small : true } ) ;
29
- //canvas = tc();
28
+ canvas = tc ( ) ;
30
29
ctx = canvas . getContext ( "2d" ) ;
31
30
return setInterval ( draw , 1000 / 60 ) ;
32
31
}
Original file line number Diff line number Diff line change 4
4
*/
5
5
6
6
var ac = require ( '../' ) ;
7
- var term = ac ( { small : true } ) ;
7
+ var term = ac ( ) ;
8
8
9
9
var Canvas = require ( 'canvas' ) ;
10
10
var canvas = new Canvas ( 320 , 320 ) ;
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ var tc = require('../');
3
3
var Canvas = require ( 'canvas' ) ;
4
4
5
5
// create terminal <canvas>
6
- var canvas = tc ( { small : true } ) ;
6
+ var canvas = tc ( ) ;
7
7
var ctx = canvas . getContext ( '2d' ) ;
8
8
9
9
var screenWidth = canvas . width ;
Original file line number Diff line number Diff line change 2
2
var tc = require ( '../' ) ;
3
3
4
4
// create terminal <canvas>
5
- var canvas = tc ( { small : true } ) ;
5
+ var canvas = tc ( ) ;
6
6
var ctx = canvas . getContext ( '2d' ) ;
7
7
8
8
require ( 'ansi' ) ( process . stdout ) . hide ( ) ;
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ module.exports = term;
23
23
function term ( opts ) {
24
24
if ( ! opts ) opts = { } ;
25
25
var stream = opts . stream || process . stdout ;
26
- var small = ! ! opts . small ;
26
+ var small = null == opts . small ? true : ! ! opts . small ;
27
27
var pixelHeight = small ? 0.5 : 1 ;
28
28
var pixelWidth = small ? 1 : 2 ;
29
29
You can’t perform that action at this time.
0 commit comments