-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Print on the Same Line Different Color #4
Comments
There are two kinds of lines at play here.
In that example, you could say the first line is the word "Figgle". But actually, from the perspective of the console, that text is 5 different lines of text:
The Assuming I understand you correctly, you're asking for multi-colour printing support. Does that sound right? If so, then this is a feature request as it's not something that's currently supported. |
Yes, that is what exactly I was looking for - please change to a feature request. |
Try like this.
|
I interpret the original request here as allowing individual characters to be printed in different colours. In the "Hello World!" example, the 'H' might be a different colour to the 'e'. I suspect something like this would need to use control characters in the output to work correctly. |
You could potentially do something like this if you know the amount of characters your string have
This piece of code is not as dynamic as it could be but you can adapt it to your needs. You can check the source code here if necessary. |
I am trying to print some characters in one color and rest of then in another color - but cannot
Console.Write
is acting likeConsole.WriteLine
i.e. adding an line break.The text was updated successfully, but these errors were encountered: