[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: The value of $X



From: Harry Binswanger 
> Have you run into problems with $X when RUNning XPL programs that expect a
> CR from the user, e.g., to signal termination of input? I did. I found I
> couldn't rely on the familiar tests for whether  was "in" {ascii
> 238} a user keystroke (nor vice-versa).

In general you shouldn't have that problem with XyWWWeb routines, because our practice -- which is
also the best practice -- is to test for key code or scan code (VA$KC or VA$SC) rather than key
output. As for your own code, if you're going to modify it, why do something Rube Goldberg-esque
like switch KBD files when a simple additional test for $KC will do. For example,

=="{CrLf}">...

becomes

=="{CrLf}"!==28!==104>...

--
Carl Distefano
cld@xxxxxxxx