Reviewed and revised December 2023
tab(-10, AG_WEBCACHE); opcode {,flags ,url}; chr(127); Tab(-10,x) Syntax Notes
AG_WEBCACHE (108) gets/sets webcache options from host.
This function has both a subroutine and a print tab implementation.
Parameters
opcode
0 (MXOP_GET) to retrieve and 1 (MXOP_SET) to set. On retrieval, the returned string will contain "flags,url" (current webcache flags and repo url).
flags
is a decimal number containing the WCDF_xxx flags
url
if specified, is the web directory for the repository.
Response:
For opcode 0, none. For opcode 1:
flags, url CR
Example
? tab(-10,AG_WEBCACHE);"1,";(WCDF_ENABLE or WCDF_ALL); ",http://www.myrepo.com/app1";chr(127); ! enable; set repo
? tab(-10,AG_WEBCACHE);"1,0";chr(127); ! disable
? tab(-10,AG_WEBCACHE);"0";chr(127); ! retrieve
? tab(-10,AG_WEBCACHE);chr(127); ! same (retrieve)
input line, response$ ! input flags,url
See Also
History
2016 October, A-Shell 6.3.1529 and 1531: WEBCACHE function added to A-Shell.