cursorTo function

String cursorTo(
  1. int x, [
  2. int? y
])

Implementation

String cursorTo(int x, [int? y]) {
  return y == null || y == 0 ? '$csi${x + 1}G' : '$csi${y + 1};${x + 1}H';
}