Please enable JavaScript to view this site.

A-Shell Reference

xcall WINFLG, flag {,feature}

The AMOS routine WINFLG was used within InSight to retrieve information about the current job and terminal environment.

Parameters

flag  (Num)  [out]

If called with just this one argument, returns 0 to indicate that inSight is not supported by A-Shell.  (Under AMOS it would have returned 1 if supported.)  If called with both arguments, then it returns flag = 1 if the corresponding feature is supported, else 0.

feature  (Num)  [in]

Indicates a particular feature to test support for. Features 1-32 are equivalent to those used by JOBDAT (which see).  Features 32-255 correspond to the equivalent TCRT or Tab(-1,x) numbers. Feature 256 indicates Multi or Office (not supported and thus set to 0 by A-Shell).

Comments

If WINFLG was called with just the one argument, it was supposed to return 1 if InSight was supported, else 0. (A-Shell does not support InSight and thus returns 0.) If called with 2 arguments, then it returns flag = 1 if the corresponding feature is supported, else 0. The features 1-32 are equivalent to those used by JOBDAT (which see). Features 33-255 correspond to the equivalent TCRT or Tab(-1,x) numbers. Feature 256 indicates Multi or Office (and is thus set to 0 by A-Shell).

Since this routine is used very sparsely in the A-Shell community, A-Shell contains only a minimal implementation. Features 1-32 are supported, as in JOBDAT, but beyond that, A-Shell returns 1 for features 33-149, plus 202 and 203 (screen save/restore). In the case of Windows (except in Telnet mode), it also returns 1 for features 158-162 (mouse functions).

History

2023 October, A-Shell 7.0.1751:  WINFLG now returns 1 indicating support for tab(-1,160) and tab(-1,162) if the current terminal driver is a "G" version (e.g. AM62G, AM75G, PCVTDV, ...)