Search results

  1. O

    Feature - Implemented Terminal color output

    I have changed the font parsing to use HtmlCleaner (which is already included in the project). I've encapsulated some of the functionality in their own classes based on separate concerns. This makes it easer to write unit tests (which are now also included), and to extend the functionality in...
  2. O

    Feature - Implemented Terminal color output

    What do you think should happen if the string contains other HTML tags than <font>? Should I skip the formatting completely in that case, or treat them as verbatim text and just replace the font tags?
  3. O

    Feature - Implemented Terminal color output

    Yes, you are absolutely right. I would usually be the first to contest using regexp for HTML "parsing", but it seemed to fit the KoLmafia style :p I will look into what the code base already uses for use-cases like this, and come up with a better solution.
  4. O

    Feature - Implemented Terminal color output

    This is a bit tricky. What would you like tested? As far as I understand the documentation and source code of the Jansi library, it will not cause and problems or inconvenience on any non-supported platform. I'm not sure how to test this though. I assume you mean ASH/js developers (Java...
  5. O

    Feature - Implemented Terminal color output

    I just noticed that my code replicates some features that are already part of Jansi, so I will strip it down a bit tomorrow. UPDATE: I have pushed the changes and updated the 2nd patch
  6. O

    Feature - Implemented Terminal color output

    I have implemented color output on the command line, very nice when running scripts on remote terminals via SSH. I've used the Jansi library that supports both Unix and Windows terminals, and I've successfully tested it even on Windows cmd prompt. It supports both named HTML colors and hex...
  7. O

    Feature Requesting additional buffbot contact method

    Acutally, I never tried how long chat messages can be. I just inferred from the comments here on the thread, that this might be an issue. And for the formatting, that's not really an issue for buff requests, no. Regarding the API, I was indeed solely talking about kolmafia integration, everyone...
  8. O

    Feature Requesting additional buffbot contact method

    Using kmail (when available) definitely is more robust than chat regarding text length and formatting, so I don't really see a reason to prefer /msg (except for a slight delay, maybe). From my point of few, the nicest thing would be a decent REST API, which I would be happy to implement for...
Back
Top