376

Scroll

Scroll is a scrolling textfile reader. You can scroll upwards anddownwards through text files of any length.  Extended View highlight codesas used by *lp and *lpS are acted on to give bold, italics, superscript,wide, subscript and underline effects.  These can be turned off to giveplain View extensions of [2A]bold[2A] and underline.
If there is enough memory, Scroll uses shadow mode 0, otherwise mode 3 isused.  Unless a command line file is given, Scroll shows the currentdirectory and asks for a filename.  At this prompt you can also give*commands to change directory, etc.  Once a file is given, it is loadedand displayed.

The keys are simple.  Cursors move up and down.  Pressing Shift will jumpone screen at a time.  Pressing Ctrl will jump to the ends of the file.Pressing COPY will flip between extended highlights and plain highlights. Pressing Escape will leave.

Pressing P and RETURN will let you print out the file.  Before youpress RETURN a prompt appears telling you the name of the printoutcommand.  You can change this here by deleting it and typing in anothercomand, but Scroll will usually have found a suitable one.  Therecommended command *lp comand is created with the MakeLP program.
The bottom line of the screen shows the filename of the file beingscrolled, a percentage figure showing how far through the file you are,and a reminder of the keys used.

Scroll will take command line arguments when run as a *command or passedvia the keyboard buffer.  The parameters are:

	*Scroll <afsp> (-quit (*)<name>)

The <afsp> is the file to display.  The -quit option gives a file to runon exit.  If the name starts with a *, then it is called as a *Command,otherwise it is CHAINed.  The -quit option must be in lower case, and onlythe first letter is significant.

So, for instance, to call Scroll from another program, you could use thefollowing:

	OSCLI "KEY0 |@"+name$+" -quit Menu"
	*FX138,0,192
	CHAIN "Scroll"

This would run Scroll and display the file name$, and on exit would returnto the program Menu.

On starting, Scroll looks for an *lp printout program.  The order itlooks for one is: lp, %.lp, %.lp.#, %.lp.*, $.lp, :0.$.lp.The recommended place to put the *lp command is in the library in asubdirectory %.lp, with a file 1 being a default general purposeprinter.  With DFS, the best place would be in the $ directory.

Scroll consists of the following files:
	Scroll   - The program
	disp	 - Controls screen output giving display effects
	T/Scroll - This text file.

NB: The current version will only display files which have each lineterminated with CR.