Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Console text color help


    Arkain

    Recommended Posts

    Hey guys,

    As the title says, is there a way to change to the text color insde the console? I've tried applying ansi color codes to no avail.

    If i am able to log colors (log(" color + text");), then debugging will become way smoother, any help is appreciated! 

    Link to comment
    Share on other sites

    Ive tried many things by now and nothing works xd I dont get any color but only the RGB values are being displayed in the console:

    [SCRIPT] [java.awt.Color[r=255,g=0,b=255]]Example    // this text is being displayed in blue by default
    [INFO]   [java.awt.Color[r=255,g=0,b=255]]Example    // this text is being displayed in white by default

    [SCRIPT] is being generated when i use the build in log, log(Color.MAGENTA + "text");
    [INFO] is being generated when i use System.out.println(Color.MAGENTA + "text");

    I am really lost on this, the only thing im getting when it comes to colors are blue and white with the rgb values + text or only text without color besides blue and white...
     

    Link to comment
    Share on other sites

    6 hours ago, Arkain said:

    Ive tried many things by now and nothing works xd I dont get any color but only the RGB values are being displayed in the console:

    + is doing string concatenation you need to provide it as the first arg to dreambots logger,

    Logger.log(Color.PINK, "penis");

    Link to comment
    Share on other sites

    18 hours ago, camalCase said:

    + is doing string concatenation you need to provide it as the first arg to dreambots logger,

    Logger.log(Color.PINK, "penis");

    if i had a book/website that taught me coding based off this I would have learned it years ago. 

    Just saying you could make millions.

    Link to comment
    Share on other sites

    On 2/11/2024 at 7:17 AM, camalCase said:

    + is doing string concatenation you need to provide it as the first arg to dreambots logger,

    Logger.log(Color.PINK, "penis");

    Yeah thx i tried this but doesn't do shit... text still shows in blue xd 

    Link to comment
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.