OpenAmiga (907/959)

From:Marc Culler
Date:31 Aug 2000 at 17:53:40
Subject:Re: AMIOPEN: Unicode

On Thu, Aug 31, 2000 at 02:33:48AM -0500, Rudi Chiarito wrote:

> > F1: ESC 5b 31 31 7e
> > F2: ESC 5b 31 32 7e
> > F3: ESC 5b 31 33 7e
> > F4: ESC 5b 31 34 7e
> > F5: ee 80 85
> > F6: ee 80 86
>
> For F1-F4, I get 'ee 80 81..84'.

I can explain that, so to speak. If I run the intent_shell in an rxvt
window I get the escape sequences above for F1-F4. If I use xterm
I get the 'ee 80 81-84' sequences. (???)

> "For the cooking device this keycode is a valid Unicode character. Keys
> which are not representable by Unicode characters (such as the cursor
> keys) have codes defined in the user space of Unicode. The Elate codes
> are between 0xE000 and 0xEFFF."
>
> So what you're seeing is Unicode characters. How are they encoded,
> though? The answer is at page 56 of the SDK manual: UTF-8. ASCII codes
> (0-127) are encoded as they are. Codes between 128 and 2047 are encoded
> in two bytes, %110xxxxx %10xxxxxx. Codes between 2048 and 65535 are
> encoded in three bytes, %1110xxxx %10xxxxxx %10xxxxxx. After some masking
> and shifting, one can finally figure that ee 80 83 is actually character
> U-e003 ($e003).

Wao! That is really quite cool, once you know how it works.
Thank you Rudi!

> I hope the above solved your doubts. It goes without saying that more
> documentation is needed, though.

Yes, indeed. Doubts are resolved. Thanks again.

- Marc
Subscribe/Unsubscribe: open-request@amiga.com
Amiga FAQ: http://www.amiga.com/faq.html