src/lib/readline/readline.js
function moveCursor(stream, dx, dy) {
  if (stream === null || stream === undefined)
    return;

  if (dx < 0) {
    stream.write(CSI`${-dx}D`);
  } else if (dx > 0) {
    stream.write(CSI`${dx}C`);
  }

  if (dy < 0) {
    stream.write(CSI`${-dy}A`);
  } else if (dy > 0) {
    stream.write(CSI`${dy}B`);
  }
}
function moveCursor(stream, dx, dy) {
  if (stream === null || stream === undefined)
    return;

  if (dx < 0) {
    stream.write(CSI`${-dx}D`);
  } else if (dx > 0) {
    stream.write(CSI`${dx}C`);
  }

  if (dy < 0) {
    stream.write(CSI`${-dy}A`);
  } else if (dy > 0) {
    stream.write(CSI`${dy}B`);
  }
}
function moveCursor ( stream , dx , dy ) { if ( stream === null || stream === undefined ) return ; if ( dx < 0 ) { stream . write ( CSI ` ${ - dx } ` ) ; } else if ( dx > 0 ) { stream . write ( CSI ` ${ dx } ` ) ; } if ( dy < 0 ) { stream . write ( CSI ` ${ - dy } ` ) ; } else if ( dy > 0 ) { stream . write ( CSI ` ${ dy } ` ) ; } }
moves the cursor relative to its current location
moves the cursor relative to its current location