About 51 results
Open links in new tab
  1. ruby - How can I change the text color in the windows command …

    However, you can change the foreground color without writing an escape sequence, for example by invoking a Win32 API function. I don't know how to do this sort of thing in Ruby off the top of my …

  2. How can I use Ruby to colorize the text output to a terminal?

    Using Ruby, how can I perform background and foreground text colorization for output in the terminal? I remember, when programming Pascal we all used to write our own textcolor(…) procedures to make …

  3. How can I change the default syntax coloring in ruby 3.0's IRB

    Mar 2, 2021 · I'm very happy to be using the most recent ruby 3.0; as well as having access to the updated command-line interpreter, which does syntax highlighting and coloring. However, the colors …

  4. ruby - How to calculate the best text color to contrast with background ...

    Jun 20, 2022 · I need to calculate a color for the text, when a background is set and that color should be the best contrast possible. The color should not be between white or black, but some color that …

  5. How to output my ruby commandline text in different colours

    Aug 3, 2016 · I was thinking of the ruby command line text when I asked my question back in 2010. The question has over 11,000 views and a stack of external links. I wouldn't have thought to look for …

  6. Writing an excel sheet with dynamic background colors in Ruby

    Mar 23, 2012 · 1 Is there a gem in Ruby which can write to an Excel file, with dynamic background coloring based on condition (need to set the color using HEX code)? I need to write different colors to …

  7. Convert RGB Color to HEX Color Ruby - Stack Overflow

    Jan 10, 2022 · I am not able to get correct hex values when I try to convert the rgb color from JSON string to the HEX code. This is my code lane :test_code do update_android_strings( xml_path: …

  8. ruby - How to color unit tests with lib minitest or Test:Unit? - Stack ...

    Sep 28, 2015 · How to color unit tests with lib minitest or Test:Unit? Asked 14 years, 9 months ago Modified 2 years, 4 months ago Viewed 13k times

  9. shell - Ruby - Print with color output - Stack Overflow

    Dec 17, 2014 · Ruby - Print with color output Ask Question Asked 11 years, 5 months ago Modified 11 years, 3 months ago

  10. Ruby, Generate a random hex color - Stack Overflow

    Nov 8, 2009 · How can I generate a random hex color with ruby?