lib/readline2/terminal_util.js
function moveCursorRelative(stream, dx, dy) {
  if (dx < 0) {
    stream.write('\x1b[' + (-dx) + 'D');
  } else if (dx > 0) {
    stream.write('\x1b[' + dx + 'C');
  }

  if (dy < 0) {
    stream.write('\x1b[' + (-dy) + 'A');
  } else if (dy > 0) {
    stream.write('\x1b[' + dy + 'B');
  }
}
function moveCursorRelative(stream, dx, dy) {
  if (dx < 0) {
    stream.write('\x1b[' + (-dx) + 'D');
  } else if (dx > 0) {
    stream.write('\x1b[' + dx + 'C');
  }

  if (dy < 0) {
    stream.write('\x1b[' + (-dy) + 'A');
  } else if (dy > 0) {
    stream.write('\x1b[' + dy + 'B');
  }
}
function moveCursorRelative ( stream , dx , dy ) { if ( dx < 0 ) { stream . write ( '\x1b[' + ( - dx ) + 'D' ) ; } else if ( dx > 0 ) { stream . write ( '\x1b[' + dx + 'C' ) ; } if ( dy < 0 ) { stream . write ( '\x1b[' + ( - dy ) + 'A' ) ; } else if ( dy > 0 ) { stream . write ( '\x1b[' + dy + 'B' ) ; } }
moves the cursor relative to its current location
moves the cursor relative to its current location