Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

color console output screws up length of string format when used with writefln #26

Open
SingingBush opened this issue Apr 29, 2016 · 0 comments

Comments

@SingingBush
Copy link

I expected the following to output "Hello........World" but it comes out as "Hello.World"
(had to swap spaces for . due to markdown formatting)

import std.stdio, consoled;

alias GreenText = ColorTheme!(Color.green, Color.black);

void main() {
    writefln("%s %12s", "Hello" GreenText("World"));
}
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant