feat: 초기 프로젝트 설정 및 룰.md 파일 추가
This commit is contained in:
22
api.hyungi.net/node_modules/charm/example/cursor.js
generated
vendored
Normal file
22
api.hyungi.net/node_modules/charm/example/cursor.js
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
var charm = require('../')(process);
|
||||
|
||||
charm.position(5, 10);
|
||||
|
||||
charm.position(function (x, y) {
|
||||
console.dir([ x, y ]);
|
||||
|
||||
charm.move(7,2);
|
||||
charm.push();
|
||||
process.stdout.write('lul');
|
||||
|
||||
charm.left(3).up(1).foreground('magenta');
|
||||
process.stdout.write('v');
|
||||
charm.left(1).up(1).display('reset');
|
||||
process.stdout.write('|');
|
||||
|
||||
charm.down(3);
|
||||
charm.pop().background('blue');
|
||||
process.stdout.write('popped\npow');
|
||||
charm.display('reset').erase('line');
|
||||
charm.destroy();
|
||||
});
|
||||
Reference in New Issue
Block a user