fusesource / jansi

Jansi is a small java library that allows you to use ANSI escape sequences to format your console output which works even on windows.
http://fusesource.github.io/jansi/
Apache License 2.0
1.11k stars 140 forks source link

cursorUpLine(0) should not emit any control sequences #172

Closed JakeWharton closed 3 years ago

JakeWharton commented 3 years ago

Currently it seems to behave the same as cursorUpLine() / cursorUpLine(1). Obviously I can omit the call when the value is zero, but when doing math sometimes the value is zero and it's far easier to have the conditional inside of cursorUpLine rather than enclosing each occurrence in user code.