arsd terminal with ConsoleOutputType.cellular
Jani Hur
spam at com.invalid
Sat Jul 13 13:30:47 UTC 2019
What might be wrong with the following code below as it doesn't
clear the screen and print "(0, 0)" as expected:
import arsd.terminal;
void main() {
auto term = Terminal(ConsoleOutputType.cellular);
term.clear;
term.writefln("(%s, %s)", term.cursorX, term.cursorY);
}
If I change to the ConsoleOutputType.linear then the screen is
cleared and "(0, 0)" is printed as expected.
I'm running Gnome Terminal in Red Hat Linux and compiling with
DMD:
[jani at red arsd]$ echo $TERM
xterm-256color
[jani at red arsd]$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.6 (Maipo)
[jani at red arsd]$ dmd --version
DMD64 D Compiler v2.083.0
Copyright (C) 1999-2018 by The D Language Foundation, All Rights
Reserved written by Walter Bright
[jani at red arsd]$
More information about the Digitalmars-d-learn
mailing list