Modifying Environmental Parameters
Published By | Date | Version | Knowledge Level | Keywords |
---|---|---|---|---|
Revelation Technologies | 10 OCT 1990 | 2.X | INTERMEDIATE | ENVIRONMENTAL, PARAMETERS, SYSTEM, BEHAVIOR, ENVIRON.SET, ENVIRON.CONSTANTS |
The environment record maintained for each user controls a great deal of Advanced Revelation's system behavior. By changing the appropriate value in the environment record, you can change system behavior.
In most cases changing the environment record in memory (@ENVIRON.SET) is enough to achieve the desired result. For example, to turn off access to TCL execute an R/BASIC program that contains the following line of code:
@ENVIRON.SET<38> = ""
To turn TCL on, set field 38 to 1.
The complete layout of @ENVIRON.SET can be found in the ENVIRON.CONSTANTS record of the INCLUDE file.
As with every good rule, there are exceptions. Some environment parameters are used during the log in procedure to initialize system variables. To change these values you must update the system variables directly, not @ENVIRON.SET. Figure 1 contains a list of these variables, their environment positions, and their functions.
For example, to change the initial index timeout delay, @INDEX.TIME, to 20 seconds you would do this:
@INDEX.TIME = 20
not this:
@ENVIRON.SET<29> = 20
Figure 1
Variable | ENVIRON.SET | Function |
---|---|---|
@BACKGRND.TIME | 30 | Number of seconds for secondary index timeout |
@CRTMAXHIGH | 14 | Maximum height of CRT |
@CRTWIDE | 15 | Maximum width of CRT |
@DEFAULT.STOPS | 9 | Default Cross Reference stop list |
@INDEX.TIME | 29 | Number of seconds for initial index timeout |
@INSERT<1> | 1 | Flag indicating insert mode |
@INSERT<2> | 45 | Flag indicating auto word wrap |
@INSERT<3> | 47 | Flag indicating auto line insert |
@INSERT<4> | 46 | Flag indicating auto line indent |
@INSERT<5> | 18 | Flag indicating case-insensitive editor searches |
@LPTRHIGH | 16 | Current height of printer page |
@LPTRWIDE | 17 | Current width of printer page |
@PLAYDELAY | 31 | Hundredths of a second between keystrokes on capture playback |
@QUERY.DEPTH | 28 | Number of queries in query table |
@ROLLOUT.FILE | 8 | Temporary DOS file for SUSPEND command |
@STATUS.ON | 12 | Flag indicating whether the status line is displayed |
@TAB.STOPS | 11 | System tab stops |
@TYPEAHEAD | 27 | Allow type ahead flag |