test helper script to print ctrl characters
This commit is contained in:
parent
43cb4be270
commit
017db356db
12
t/bin/echo_ctrl_chars.rb
Executable file
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
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user