sindresorhus / ansi-escapes

ANSI escape codes for manipulating the terminal
MIT License
485 stars 44 forks source link

Require `x` argument in `cursorTo()` and `cursorMove()` #5

Closed sindresorhus closed 7 years ago

sindresorhus commented 7 years ago

It's a breaking change.

I don't know why I allowed and documented that cursorTo() could be used without arguments, but it makes no sense to me now.

sindresorhus commented 7 years ago

// @vadimdemedes

Qix- commented 7 years ago

I don't know why I allowed and documented that cursorTo() could be used without arguments

Because when omitted, H will default to the top left corner of the viewport.

:+1: on this PR, but just providing a potential reason.

sindresorhus commented 7 years ago

I see. I still prefer being explicit though.