Skip to content

Commit 3d57491

Browse files
committed
make "small" mode enabled by default
The win in the upgraded resolution is just too good to pass up!
1 parent def19cc commit 3d57491

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
lines changed

examples/bounce.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ function clear() {
2525
}
2626

2727
function init() {
28-
canvas = tc({ small: true });
29-
//canvas = tc();
28+
canvas = tc();
3029
ctx = canvas.getContext("2d");
3130
return setInterval(draw, 1000 / 60);
3231
}

examples/clock.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55

66
var ac = require('../');
7-
var term = ac({ small: true });
7+
var term = ac();
88

99
var Canvas = require('canvas');
1010
var canvas = new Canvas(320, 320);

examples/imgcat.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ var tc = require('../');
33
var Canvas = require('canvas');
44

55
// create terminal <canvas>
6-
var canvas = tc({ small: true });
6+
var canvas = tc();
77
var ctx = canvas.getContext('2d');
88

99
var screenWidth = canvas.width;

examples/time.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
var tc = require('../');
33

44
// create terminal <canvas>
5-
var canvas = tc({ small: true });
5+
var canvas = tc();
66
var ctx = canvas.getContext('2d');
77

88
require('ansi')(process.stdout).hide();

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module.exports = term;
2323
function term (opts) {
2424
if (!opts) opts = {};
2525
var stream = opts.stream || process.stdout;
26-
var small = !!opts.small;
26+
var small = null == opts.small ? true : !!opts.small;
2727
var pixelHeight = small ? 0.5 : 1;
2828
var pixelWidth = small ? 1 : 2;
2929

0 commit comments

Comments
 (0)