Skip to content

Fix blink_fast reset code#16806

Open
kojix2 wants to merge 2 commits intocrystal-lang:masterfrom
kojix2:colorize-blank-fast
Open

Fix blink_fast reset code#16806
kojix2 wants to merge 2 commits intocrystal-lang:masterfrom
kojix2:colorize-blank-fast

Conversation

@kojix2
Copy link
Copy Markdown
Contributor

@kojix2 kojix2 commented Apr 4, 2026

Hi

The reset code for blink_fast was 26, but it should be 25.
25 turns off both blink 5 and blink_fast 6.
26 is unused and has no effect.

Ref https://en.wikipedia.org/wiki/ANSI_escape_code

Code for reproducing the issue:

require "colorize"

MOTEL = "MOTEL".colorize.red.blink_fast.bold.to_s 
VACANCY = "VACANCY".colorize.yellow.blink.bold.to_s 

puts "=============".colorize.light_blue
puts "||  " + MOTEL + "  ||"
puts "|| " + VACANCY + " ||"
puts "=============".colorize.light_blue

@straight-shoota straight-shoota added kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:stdlib:text labels Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:stdlib:text

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants