Please enable JavaScript to view this site.

ESL Documentation

The response to char statement tells ESL that the specified response is to be triggered when specified character(s) are received from the keyboard or from a local or remote application program.  The input need not end with a newline character.

You can specify one or more match clauses showing the format or composition of the input that ESL is to recognize; for example:

 

response to char "Please enter name:" from Prog_1

   ...

 

Here, the precise character string "Please enter name:" must be received from the application program for the response to be triggered.  The match clause is optional; for example:

 

response to char from Mail

   ...

 

Here, if any character is received from the application named Mail, the response will be taken.

See How response to line and response to char are Processed for more information on the response to char statement.