123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- 'use strict';
- var ansiEscapes = require('ansi-escapes');
-
-
-
- exports.left = function(rl, x) {
- rl.output.write(ansiEscapes.cursorBackward(x));
- };
-
-
-
- exports.right = function(rl, x) {
- rl.output.write(ansiEscapes.cursorForward(x));
- };
-
-
-
- exports.up = function(rl, x) {
- rl.output.write(ansiEscapes.cursorUp(x));
- };
-
-
-
- exports.down = function(rl, x) {
- rl.output.write(ansiEscapes.cursorDown(x));
- };
-
-
- exports.clearLine = function(rl, len) {
- rl.output.write(ansiEscapes.eraseLines(len));
- };
|