return point;
 }
 
-void CYDisplayMove(CYCursor target) {
-    int offset(target.real() - current_.real());
-
+void CYDisplayMove_(char *negative, char *positive, int offset) {
     if (offset < 0)
-        putp(tparm(parm_up_cursor, -offset));
+        putp(tparm(negative, -offset));
     else if (offset > 0)
-        putp(tparm(parm_down_cursor, offset));
+        putp(tparm(positive, offset));
+}
+
+void CYDisplayMove(CYCursor target) {
+    CYCursor offset(target - current_);
+
+    CYDisplayMove_(parm_up_cursor, parm_down_cursor, offset.real());
+
+    if (char *parm = tparm(column_address, target.imag()))
+        putp(parm);
+    else
+        CYDisplayMove_(parm_left_cursor, parm_right_cursor, offset.imag());
 
-    putp(tparm(column_address, target.imag()));
     current_ = target;
 }