Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[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 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 linux :) -- Best regards, Andreas mailto:[andreas--bolka--gmx--net]