Other arsd.terminal related question. How to clear a line when it is re-used ? The following code snipped is expected to print:

important text !

but instead it prints:

important text !gless mambo-jambo (33, 0)

import arsd.terminal;

void main() {
  auto term = Terminal(ConsoleOutputType.linear);
  term.clear;
  term.write("plenty of meaningless mambo-jambo");
  term.writef(" (%s, %s)", term.cursorX, term.cursorY);
  term.moveTo(0, 0);
  term.write("important text !");
  term.writeln;
}

Reply via email to