[REBOL] Re: System Port Trap Example
From: andreas:bolka:gmx at: 13-Oct-2002 13:37
Sunday, October 13, 2002, 9:21:34 AM, Romano wrote:
>> The code below will detect both CTRL-C and REBOL ESCAPE key.
> On my 22.214.171.124.1 only escape.
> And this expression:
> get-modes system/ports/system 'system-modes
> gives as result:
> [window winmsg endian]
> so the following code will be never executed:
> if find get-modes system/ports/system 'system-modes 'signal [
> What it useful for?
the result depends on the operating system you're working on. for
example on linux you'll get the following:
>> get-modes system/ports/system 'system-modes
== [signal read-fd write-fd except-fd signal-names endian]
as of course rebol will most likely not receive windows messages on