arsd terminal with ConsoleOutputType.cellular

Jani Hur spam at com.invalid
Sat Jul 13 13:41:41 UTC 2019


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;
}



More information about the Digitalmars-d-learn mailing list