Modifying Environmental Parameters

Published ByDateVersionKnowledge LevelKeywords
Revelation Technologies10 OCT 19902.XINTERMEDIATEENVIRONMENTAL, 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
VariableENVIRON.SETFunction
@BACKGRND.TIME30Number of seconds for secondary index timeout
@CRTMAXHIGH14Maximum height of CRT
@CRTWIDE15Maximum width of CRT
@DEFAULT.STOPS9Default Cross Reference stop list
@INDEX.TIME29Number of seconds for initial index timeout
@INSERT<1>1Flag indicating insert mode
@INSERT<2>45Flag indicating auto word wrap
@INSERT<3>47Flag indicating auto line insert
@INSERT<4>46Flag indicating auto line indent
@INSERT<5>18Flag indicating case-insensitive editor searches
@LPTRHIGH16Current height of printer page
@LPTRWIDE17Current width of printer page
@PLAYDELAY31Hundredths of a second between keystrokes on capture playback
@QUERY.DEPTH28Number of queries in query table
@ROLLOUT.FILE8Temporary DOS file for SUSPEND command
@STATUS.ON12Flag indicating whether the status line is displayed
@TAB.STOPS11System tab stops
@TYPEAHEAD27Allow type ahead flag
  • tips/revmedia/r63.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1