public override bool MoveCursor(int delta) { IO.Text.Builder result = new IO.Text.Builder(); if (delta > 0) result.Append("\x1b[{0}C", delta); else if (delta < 0) result.Append("\x1b[{0}D", -delta); return this.Out.Write((string)result); }
public override bool MoveCursor(Geometry2D.Integer.Size delta) { IO.Text.Builder result = new IO.Text.Builder(); if (delta.Width > 0) result.Append("\x1b[{0}C", delta.Width); else if (delta.Width < 0) result.Append("\x1b[{0}D", -delta.Width); if (delta.Height > 0) result.Append("\x1b[{0}B", delta.Height); else if (delta.Height < 0) result.Append("\x1b[{0}A", -delta.Height); return this.Out.Write((string)result); }