Replies: 34 comments 1 reply
-
Terminal colors are stripped by default, see: |
Beta Was this translation helpful? Give feedback.
-
How do I disable it to get a colored console again? |
Beta Was this translation helpful? Give feedback.
-
I honestly don't remember. I've been kinda busy lately and haven't had time to do mark2 updates. |
Beta Was this translation helpful? Give feedback.
-
I would very much appreciate getting colours in the console, if you have some time @gsand could you please look into how I can get colors working in the console. Thank you. |
Beta Was this translation helpful? Give feedback.
-
Bump. |
Beta Was this translation helpful? Give feedback.
-
You can just comment on that line in the default properties, right? |
Beta Was this translation helpful? Give feedback.
-
mark2 doesn't parse the colors at all. |
Beta Was this translation helpful? Give feedback.
-
Bump; can we implement colors; this bash script is pre-made and needs to be merged somehow into Makr2, this fella is the one that makes the timing reports website and paperspigot. |
Beta Was this translation helpful? Give feedback.
-
Has anyone been able to figure this out? I can see from another issue that @Sir-Will got it working on a previous issue ( over a year ago) (the issue wasn't about missing colors but more about a colour not showing correct #35) |
Beta Was this translation helpful? Give feedback.
-
I have this issue too, on few servers it shows colors on the others not, although they have the same plugins and version. |
Beta Was this translation helpful? Give feedback.
-
hmm is it related to the os? |
Beta Was this translation helpful? Give feedback.
-
@KasperFranz the servers are on the same box, so same ubuntu version. |
Beta Was this translation helpful? Give feedback.
-
oh that is weird then o.0 and guessing nearly same config? |
Beta Was this translation helpful? Give feedback.
-
Yea, already looked for a difference, couldn't find one. |
Beta Was this translation helpful? Give feedback.
-
that is weird, I have even tried with 1.8 and 1.9 servers which is also scrapping the colors (planning on using it for a 1.7 server) |
Beta Was this translation helpful? Give feedback.
-
Did some digging and ANSI codes do work, but all player input that is sent to the console has color codes stripped before we receive it so we can't format it after the fact. As for the unsupported terminal flag, I believe that is mandatory as it will crash the server without it in some instances. You can test it by sending a color-coded message using the say command from the console: I looked at what gets received when a line is printed on the console, and it has all the formatting stripped which would be why it doesn't get colorized. I'm not entirely sure how to set it up where formatting is passed on to mark2. Regardless of this, I made some changes to the code to allow the use of color codes from the console sender in the form of ampersands ( See commit: a684890 |
Beta Was this translation helpful? Give feedback.
-
Removing the unsupported terminal flag still yielded no colors so that's not related I don't think (at least on mark2's end) |
Beta Was this translation helpful? Give feedback.
-
Ok, interesting... I just tried on another server running Mohist 1.16.5 (forge-spigot similar to thermos) and the server saying something showed as colored in reply, but doing it as a player did not. |
Beta Was this translation helpful? Give feedback.
-
@Column01 Thank you for the commits and research on this! Glad to see someone else poking around lol. Now correct me if I'm wrong but is it not the case that the [Warning] and [Severe] messages should be colored? Or perhaps that is just a feature of certain consoles? I honestly rarely use anything other than Mark2, even just bare terminal so I am quite unaware if it is colored there or not. |
Beta Was this translation helpful? Give feedback.
-
I've not tested running these instances bare in a terminal, might have to try that. It's been forever since I've run a server through an actual terminal and not using mark2. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
@Column01 That does look pretty much like what I've seen in other consoles (keep in mind I am in the same boat as you, mainly use Mark2 so) |
Beta Was this translation helpful? Give feedback.
-
What about highlighting just the log level? Do you think that would look better? Also fixes not highlighting a full multiline error message, but still draws attention to issues. |
Beta Was this translation helpful? Give feedback.
-
I think highlighting just the log level does make sense since you said stack traces don't get highlighted correctly but I honestly prefer the whole line to be highlighted. Perhaps it is possible to add a config option? |
Beta Was this translation helpful? Give feedback.
-
I don't think a config option for something like this makes sense considering level highlighting is the default behavior for the Minecraft server console. Come to think of it, the only errors that won't get highlighted in the multiline form are those that use I suppose I'll just do full line highlighting then |
Beta Was this translation helpful? Give feedback.
-
Added the log level color changes in 15ece58 |
Beta Was this translation helpful? Give feedback.
-
My suspicions were correct, proper multiline stack trace printing works as intended. |
Beta Was this translation helpful? Give feedback.
-
Moved to a discussion, this isn't an issue with mark2 and is likely the server software stripping the color data as discussed. |
Beta Was this translation helpful? Give feedback.
-
I cant wait to have some sort of highlighting |
Beta Was this translation helpful? Give feedback.
-
Everything is black and white in the live console for Mark2, how can I get colors to show for colored items in the console? Like player names etc.
Beta Was this translation helpful? Give feedback.
All reactions