Colors in the output window

Bump again, this would be so useful

3 Likes

Bump, bumpity, bump bump. I’d like color-coded code (:wink:) to more easily see and differentiate the output of specific functions in my code for easier debugging and other things.

I stay away from warn() and error() as they both have undesirable functionalities to them in this context.

1 Like

Bump again, this would make debugging easier.

3 Likes

Implement this please! This would be an amazing feature.

1 Like

perhaps just built into the 3 rather than new

if no color is sent, then just default, but if a color is sent, use that color

1 Like

Bump for implementation.

However, if you see this thread and are still waiting on this feature, maybe you could use like the suggested above with emojis. But with these emojis preceding a print specifically.

:red_circle: Hello World!
:green_circle: Hello World!
:large_blue_circle: Hello World!
:yellow_circle: Hello World!
:black_circle: Hello World!
:white_circle: Hello World!
:purple_circle: Hello World!
:orange_circle: Hello World!

I use it like so,

print("đŸ”” Traceability| State Changed with"..tostring(Index)..". To: "..tostring(Value))
5 Likes

Bump! This would be extremely useful for debugging especially when handling masses of code. I’m working with OOP programming principles right now, so it’d be very convenient to have various colors labeling where things are happening and what they’re doing.

2 Likes

I support using those ANSI escape chars for this, or reserving extra characters on the range they’re using for the robux and premium icons.

A more verbose idea is either to support rich text, or a table with character locations.

3 Likes

Bumping, this would be super useful. It’s been 7 years, how do we still not have this?!?!?

4 Likes

Dang it’s been 7 years since I posted this! It might be worth mentioning that in the modern day, we have rich text which goes beyond what this post even described, but it’s still not accessible in the output!

9 Likes

It would be really cool if implemented!

1 Like

Maybe add support for RichText?
image

Though this will leave out studio’s output window.
image

11 Likes

Bump again, this would be super cool for my data saving and loading system to differentiate different prints. For example, a print that says “Connected to database” would be green, and the print that prints out the player’s data would be blue.

3 Likes

Bump, print with color would be great! Maybe a filter by color3 option for it as well in output. Debugging would be easier as (personally) I work on a lot of commissions and the output is insanely full. But to filter and immediately see it (or scroll until I find the color I put) would make it sooooooo much easier. This would be great and we already have color3s for text so why not output?

3 Likes

Bump this once more! The thing is we can’t even use ansi codes in terminal. It’s like roblox doesn’t want us to have more than 4 colors. Ansi codes, usage of Color3 in terminal outputs or rich text addition to console would be great.

2 Likes

fr, bump from me too!!!

hope an engineer reads this

2 Likes

bumpy bumpity bump

yes please do this!1!!!

my idea:

local LogService = game:GetService("LogService")

--[[ new function! LogService:Print(color: Color3, settings: {
    Bold: boolean,
    Italic: boolean,
    Underline: boolean,
    Strikethrough: boolean,
} | boolean, message: string)
parameters:
color: The color of the message
settings: Table with settings OR true which enables everything and false which
    disables everything
message: The message to print
]]
LogService:Print(Color.fromRGB(0, 255, 0), false, "Hello there! :D")
6 Likes

Rich text is already great - could we have support for that? (w/o font size, that would be a mess)

1 Like

too much work just to print, color duplication, instead

local logger = LogService:Logger( -- all your settings go here )
logger.log('ThemeName which ya choose in settings', 'hello world')
1 Like

bump I feel like if this was implemented one day, it would have an optional second parameter for color 3

print("Hello, World!", Color3.new(1, 1, 1))
1 Like