test helper script to print ctrl characters

This commit is contained in:
Johan Holmberg 2016-12-07 21:41:20 +01:00
parent 43cb4be270
commit 017db356db

12
t/bin/echo_ctrl_chars.rb Executable file

@ -0,0 +1,12 @@
#!/usr/bin/ruby
for arg in ARGV
if arg =~ /^(\d+):(\d+)$/
a = Integer($1)
b = Integer($2)
for i in a...b
puts "--- %s --- %s ---" % ["^" + (i+64).chr, i.chr]
end
end
end