Skip to content

Commit 172f9ac

Browse files
raywu0123isaacs
authored andcommittedJul 3, 2019
fix-xmas-underline
Credit: @raywu0123 PR-URL: #179 Close: #179 Reviewed-by: @isaacs
1 parent a81a8c4 commit 172f9ac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎lib/xmas.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = function (args, cb) {
1111
'\u0020', '\u0020', '\u0020', '\u0020', '\u0020', '\u0020',
1212
'\u0020', '\u2E1B', '\u2042', '\u2E2E', '&', '@', '\uFF61'
1313
]
14-
var oc = [21, 33, 34, 35, 36, 37]
14+
var oc = [33, 34, 35, 36, 37]
1515
var l = '\u005e'
1616

1717
function w (s) { process.stderr.write(s) }
@@ -25,6 +25,7 @@ module.exports = function (args, cb) {
2525
var O = L * 2 - 2
2626
var S = (M - O) / 2
2727
for (i = 0; i < S; i++) w(' ')
28+
w(x + '\u001b[21m')
2829
w(x + '\u001b[32m' + f)
2930
for (i = 0; i < O; i++) {
3031
w(
@@ -33,6 +34,7 @@ module.exports = function (args, cb) {
3334
)
3435
}
3536
w(x + '\u001b[32m' + b + '\n')
37+
w(x + '\u001b[0m')
3638
}
3739
w(' ')
3840
for (i = 1; i < H; i++) w('\u001b[32m' + l)

0 commit comments

Comments
 (0)
Please sign in to comment.