CTRL+D - Divide Screen

Displays two different parts of an item on the screen at the same time.

Command

CTRL+D

Action

Pressing CTRL+D allows you to view another part of the current item on the screen. A second window is created at the bottom half of the screen. When you press CTRL+D, the Status/Command Line prompts:

Starting line# for window:

Enter the line number of the first line to be displayed in the window. The upper part of the screen remains unchanged.

Example

Assume that the screen is currently displaying lines 55 to 77. Press CTRL+D and type 100  at the Starting line# for window:  prompt. The screen continues to display lines 55 through 66 in the upper window and displays lines 100 to 109 in the lower window. The original and resulting screens are shown below.

0055     GO 113
0056 112 XI=INDEX(TXT," ",1)
0057     XR=XI+1
0058     XN=NT-XI
0059     TXT=TXT[XR,XN]
0060     NS="  ":IL:" "
0061     IF IL>9 THEN NS=" ":IL:" "
0062     IF IL>99 THEN NS=" ":IL:" "
0063 113 PRINT IND:LN:NS:TXT
0064     LNN=LNN+1
0065     IF TEXT(LNN)=NILL THEN GO 130
0066     GOSUB 300
0067     LC=LC+1
0068     IF LNN=10 THEN IND=SS:"0"
0069     IF LNN=100 THEN IND=SS
0070     IF LC=56 THEN GO 115
0071     GO 110
0072 115 PG=PG+1
0073     LC=1
0074     PRINTER CLOSE
0075     PRINTER ON
0076     HEADING HD2
0077     GO 105
Edit mode (?=Help) BFILE ITEMX

Screen after the Divide Screen command:

0055     GO 113
0056 112 XI=INDEX(TXT," ",1)
0057     XR=XI+1
0058     N=NT-XI
0059     TXT=TXT[XR,XN]
0060     NS="  ":IL:" "
0061     IF IL>9 THEN NS=" ":IL:" "
0062     IF IL>99 THEN NS=" ":IL:" "
0063 113 PRINT IND:LN:NS:TXT
0064     LNN=LNN+1
0065     IF TEXT(LNN)=NILL THEN GO 130
0066     GOSUB 300
--------------------------------------------
0100 300 TRY=TEXT(LNN)
0101     NT=LEN(TRY)
0102     FOR X=1 TO NT
0103        IF TRY[X,1]=BAD THEN GO 310
0104        IF TRY[X,1]=BD2 THEN GO 311
0105 305 NEXT X
0106     TEXT(LNN)=TRY
0107     RETURN
0108 310 TRY[X,1]=GOOD
0109     GO 305
Press (Return):

The Status/Command Line prompts:

Press (Return):

Any input returns the screen to the display previous to the Divide Screen command.