feat: 초기 프로젝트 설정 및 룰.md 파일 추가
This commit is contained in:
17
api.hyungi.net/node_modules/charm/example/256.js
generated
vendored
Normal file
17
api.hyungi.net/node_modules/charm/example/256.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
var charm = require('../')(process);
|
||||
|
||||
function exit () {
|
||||
charm.display('reset');
|
||||
process.exit();
|
||||
}
|
||||
charm.on('^C', exit);
|
||||
|
||||
var ix = 0;
|
||||
var iv = setInterval(function () {
|
||||
charm.background(ix++).write(' ');
|
||||
if (ix === 256) {
|
||||
clearInterval(iv);
|
||||
charm.write('\n');
|
||||
exit();
|
||||
}
|
||||
}, 10);
|
||||
Reference in New Issue
Block a user