ASCII values - here's a start
[1/2] from: arolls:bigpond:au at: 14-Dec-2000 2:01
for b1 0 15 1 [
for b2 0 15 1 [
ch: to-char c: b1 * 16 + b2
h: enbase/base to-string ch 16
prin rejoin [
c " " ; decimal
ch " " ; printable (?) character
h " " ; hexadecimal
; erm... octal... hmm..
]
if b2 = 7 [print ""] ;break the display in half
]
print ""
]
I noticed when I paste the above code into
the console about 10 or 20 times it crashes and
rebol.exe is shut down. I have reported this to
feedback.
Maybe it has something to do with non-printing character codes.
We need to filter those out anyway, because they mess up the
display. What are they? Values below 32 ?
(I don't suppose anyone's made a hex editor, have they?)
Anton.
[2/2] from: chris::starforge::demon::co::uk at: 13-Dec-2000 15:12
Anton wrote:
> Maybe it has something to do with non-printing character codes.
> We need to filter those out anyway, because they mess up the
> display. What are they? Values below 32 ?
Values below 32 will almost certainly cause problems. Values
above 127 may also be a bit problematical depending upon the
host OS..
Chris
--
New sig in the works
Explorer2260 Designer and Coder
http://www.starforge.co.uk