AAsk wrote:
> If I am sending the escape character to a window programatically, I'd
> send {ESC}. If I am reading the characters that I am sending to a
> window from a file, what value do I write for {ESC}?
>
> e.g. what code do I write to the file:
> to close the APLW editor i.e for {ESC} (single key)
> to close the APL+Win editor i.e .for Ctrl + E (combined key)
> to close the APLX editor i.e for Ctrl + S + W (multiple
> combined key(s))
>
> Programatically, these would be
>
> {ESC}
> ^S^W (or is it ^SW?)
> ^E
>
> What are the values of these keys?
keys? or characters?
the Unicode value for ASCII Escape is 0x001B
what is/should be stored on file will depend on how the file's been
encoded
UTF-8 will store the character as the 8-bit quantity 0x1B
UTF-16 will store the two 8-bit quantities 0x00, 0x1B (but not
necessarily in that order -- it depends on your Endian properties)
ctrl-E is/was ENQ, and has the Unicode value 0x0005
ctrl-S is/was DC3 (typically, stop scrolling) and has the Unicode value
0x0013
ctrl-W (if that _is_ what you're using) is/was ETB (was that End Text
Block?), and has the Unicode value 0x0017
HTH . . . /phil


|