murex Shell Docs

Command Reference: event

Event driven programming for shell scripts

Description

Create or destroy an event interrupt

Usage

event: event-type name=interrupt { code block }

!event: event-type name

Examples

Create an event:

event: onSecondsElapsed autoquit=60 {
    out "You're 60 second timeout has elapsed. Quitting murex"
    exit 1
}

Destroy an event:

!event onSecondsElapsed autoquit

Detail

The interrupt field in the CLI supports ANSI constants. eg

event: onKeyPress f1={F1-VT100} {
    tout: qs HintText="Key F1 Pressed"
}

To list compiled event types:

» runtime: --events -> formap k v { out $k }
onFileSystemChange
onKeyPress
onSecondsElapsed

Synonyms

See Also

This site is rebuilt weekly, the content is automatically generated from murex's source code. Last built on Mon Sep 21 06:11:30 UTC 2020 against commit 2557f7c2557f7cc7535c452c21d89164bd38ed8996f02fd. Downloadable murex binaries are also built weekly. Current version is 0.52.2000 BETA which has been verified against tests.