14.1.1 Changing Current Assignments and Switch Settings

You can change the current editor switches and key assignments. Choose Editor Settings or Key Assignments from the Options menu. PWB displays these settings in a new window labeled Current Assignments and Switch Settings.

The <ASSIGN> pseudofile is associated with the Current Assignments and Switch Settings window. A pseudofile exists only in memory; it has no counterpart on disk until you explicitly save it. Saving the <ASSIGN> pseudofile automatically saves any changes you make in the Current Assignments and Switch Settings window.

To change a switch, edit the line on which it appears. For instance, the vscroll switch controls how many lines PWB scrolls vertically; its default setting is 1. To change it, move to the corresponding line:

vscroll:1

Change the 1 to 3 and move the cursor to another line. PWB highlights the line to indicate that the change has been executed. (If you make an illegal change, PWB signals an error.) The change takes effect immediately: PWB now scrolls text three lines at a time.

Summary: When you save <ASSIGN>, PWB updates your TOOLS.INI file.

PWB discards all changes at the end of a session unless you explicitly save them. You save changes by saving <ASSIGN> as you would any other file. Select Save from the File menu, or press SHIFT+F2.

You can also use this method for more elaborate customizations, such as writing macros (see Section 14.3, “Writing Macros”). Simply insert a few blank lines in the Current Assignments and Switch Settings window and enter the new information in them.

If you add or modify a line of the Current Assignments and Switch Settings window, PWB immediately alters its behavior accordingly; the new or changed lines are saved in TOOLS.INI when you save the <ASSIGN> file. However, deleting a line has no effect, either on PWB's behavior or the contents of TOOLS.INI; you must edit TOOLS.INI to remove an assignment.