On Friday, 2 December 2022 at 05:27:40 UTC, Daniel Donnelly, Jr. wrote:
Doesn't work.  The result I get is shit:

The problem is just that writeln to the console is broken. You can either write to a function instead and load it in a text editor, or use a non-broken writeln like my terminal.d's

```
void main() {
        // using the same string...
        dstring s = "";
        for (dchar i='ₐ'; i < 'ₜ'; i++)
                s ~= i;

        // this will output correctly
        import arsd.terminal;
        auto terminal = Terminal(ConsoleOutputMode.linear);
        terminal.writeln(s);

        // this will not
        import std.stdio;
        writeln(s);
}
```

Screenshot output:
http://arsdnet.net/dcode/writelnsux.png


Now, while it outputs correctly, you'll still note a bunch of empty boxes. That's because the *font* I'm using doesn't include those characters. If you changed fonts there's a decent chance you can see those too.

Reply via email to