|
|
|
![]() To 'GUI' or Not to 'GUI' If you have a mixed environment, with some users connecting with terminal emulation, and some with a GUI interface, it might be handy to be able to tell which interface is currently being used. Here are two techniques:
* Are we character or are we GUI (Presentation Manager)?
* A presentation manager session has '-f=
The above technique also demonstrates the use of RT_GETPARAM to check for arguments on the command line. TEMP 80 contains the parameter we are interested in ('-f' in this case). After calling RT_GETPARAM, TEMP 80 will either contain the data on the right hand side of '-f=', or it will still contain '-f' if '-f' is not found on the command line. This approach does not distinguish between the Java Client and the Presentation Manager client.Another approach is:
PASS --- FEATURE TOKEN SCANLIST FIELD SHARE? Y
CALL ,RT_CHECK_CLI_FEATURE RESIDENT? N END? N FAIL 0
IF --- RETURN CODE EQ +1
T It's the Java Client
F It's not
This technique specifically tests for the Java client, and will return +0 if the user is character or Presentation Manager.For additional information, contact tips@cwi-appx.com [back to top] | |