Yuvaraj Athur Raghuvir wrote:
> What confuses me is that Wordpad is able to substitute something using
> Courier New while NotePad (and hence J's Session Manager?) is not able to do
> so. Probably goes back all the way to the type of edit control that is used
> here.
I thought your goal was to port your entire J environment from your old machine
to your new. With that in mind, on your old machine, when you open a J Session
Manager and type a. #~ 1 ~: 32 127 I. i.#a. , what do you see?
If you don't see small rectangles, then can you check your
Edit>Configure>Display>Display Font field? If it says "Courier" or "Courier
New" and you're seeing distinguishable glyphs instead of small rectangles, then
I am very surprised. What else is different between the two machines?
If you do see small rectangles, then the old machine/new machine situation is
just cirumstantial, and your question is just as you put it:
> "how to display the non-printable (e.g. characters with ASCII values less
> than 32 or greater than 127) as distinct symbols instead of small rectangles
> that are indistinguishable?"
The only way I'm aware of for the Session Manager to display distinguishable
ASCII control characters is when it is configured to use a font which includes
glyphs for them. I don't know what WordPad is doing for you, but it's not
doing it for me. That is, if execute this J sentence:
a. fwrite 'C:\a.txt'
and then open C:\a.txt with wordpad and select Courier as my font, the only
distinguishable characters are the printable characters (aptly named!). The
control characters are all rendered as indistinguishable rectangles (including
the box drawing characters). I'm running on XP SP 3.
I'm sorry I can't be more help.
-Dan
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm