(msg-id data)
. In order to fully understand
the commands you need to look at the examples because we rely on the
"obvious" nature of the examples to make the details clear.
Format: CMD,NULL
Example: kill-input-window\0
Format: CMD,NULL
Example: reset\0
Format: CMD,NULL
Example: terminate\0
Format: CMD,SP,ID,SP,TEXT,NULL,SP,INT,SP,TEXT,NULL,...,TEXT,NULL
Example: choose 1018 Favorite color?\0 3 Red\0Green\0Blue\0
Returns: (,ID,SP,RESPONSE,),NL
Example: If the user chooses "Green" then (1018 2)\n
Format: See choose.
Example: choose-multiple 1019 Favorite colors?\0 3 Red\0Green\0Blue\0
Returns: (,ID,SP,(,SP,RESPONSE,...,SP,RESPONSE,),),NL
Example: If the user chooses "Red" and "Blue" then (1019 ( 1 3))\n
Format: CMD,SP,ID,SP,TEXT,NULL
Example: y-or-n-p 1013 Are you a college student?\0
Returns: (,ID,SP,:YES,),NL or (,ID,SP,:NO,),NL
Example: (1013 :YES)\n
Format: See y-or-n-p.
Example: read-atom 1015 What is your favorite atom?\0
Returns: (,ID,SP,RESPONSE,),NL
Example: (1015 LITHIUM)\n
Format: See y-or-n-p.
Example: read-list 1016 Enter a call to CONS.\0
Returns: (,ID,SP,RESPONSE,),NL
Example: (1016 (cons 'a '(b c)))\n
Format: See y-or-n-p.
Example: read-number 1014 What is your age in years?\0
Returns: (,ID,SP,RESPONSE,),NL
Example: (1014 27)\n
Format: CMD,SP,ID,SP,NUM,SP,NUM,SP,TEXT,NULL
Example: read-number-with-bounds 1017 0 10 Enter a number from 0 to 10\0
Returns: (,ID,SP,RESPONSE,),NL
Example: (1017 3.14)\n
Format: See y-or-n-p.
Example: read-string 1015 What is your name?\0
Returns: (,ID,SP,",RESPONSE,",),NL
Example: (1015 "Methuselah")\n
Format: CMD,SP,ID,TITLE,NULL
Example: open-log 2048 Error Log\0
Returns: (,ID,SP,LOG-ID,),NL
Example: (2048 7)\n
Format: CMD,SP,ID,SP,LOG-ID,NULL
Example: clear-log 2049 7\0
Format: CMD,SP,ID,SP,LOG-ID,SP,TEXT,NULL
Example: log 2050 7 Oh no, an error occured!\n\0
Format: See clear-log.
Example: close-log 2051 7\0
Format: CMD,SP,ID,SP,INT,SP,TEXT,NULL.
Example: show-msg 2052 10 This message will disappear in 10 sec.\0
Format: CMD,SP,ID,SP,TITLE,NULL,TEXT,NULL
Example: show-text 2053 My Title\0The body of the text to display.\0
There is documentation on the LISP client for the Algernon I/O Library.
This page was created by
Micheal Hewett