Scroll 1.09 =========== *BScroll*b is a scrolling textfile reader. You can scroll upwards and downwards through text files of any length. Extended View highlight codes as used by *B*lp*b and *B*lpS*b are acted on to give *Bbold*b, *Iitalics*i, *Ssuperscript*s, *Wwide*w, *Ysubscript*y and *underline* effects. These can be turned off to give plain View extensions of **bold** and *underline*. *BScroll*b will also run on the Archimedes. If there is enough memory, *BScroll*b uses shadow mode 0, otherwise mode 3 is used. Unless a command line file is given, *BScroll*b shows the current directory and asks for a filename. At this prompt you can also give *B**bcommands to change directory, etc. Once a file is given, it is loaded and displayed. The keys are simple. Cursors move up and down. Pressing *BShift*b will jump one screen at a time. Pressing *BCtrl*b will jump to the ends of the file. Pressing *BCOPY*b will flip between extended highlights and plain highlights. Pressing *BEscape*b will leave. Pressing *BP*b and *BRETURN*b will let you print out the file. Before you press *BRETURN*b a prompt appears telling you the name of the printout command. You can change this here by deleting it and typing in another comand, but *BScroll*b will usually have found a suitable one. The recommended command *B*lp*b comand is created with the *BMakeLP*b program. Pressing *B4*b will display the file in 40 column teletext mode, if *BScroll*b has been told what program to use. The bottom line of the screen shows the filename of the file being scrolled, a percentage figure showing how far through the file you are, and a reminder of the keys used. *BScroll*b will take command line arguments when run as a *B**bcommand or passed via the keyboard buffer. The parameters, which are displayed if *B-?*b is given, are: *B*Scroll (-lp ) (-4 ) |-chan + (-quit )*b *B*b is the file to display. Alternatively, *B-chan*b can be used to tell *BScroll*b to read from an open channel. The *B*b is the channel number in decimal and the *B+* gives the length of the section of file to use in decimal or hexadecimal preceeded with *B&*b. There must be no spaces in the *B+*b part, and the PTR of the open file should be set to the start of the section to read. This can be used to read through a file within an archive. The *B-lp*b option gives a command to use to print out the file. If this option is not given, then a default printout command is looked for as detailed below. The *B-4*b option gives a command to use to display the file in 40 column teletext mode. The *B-quit*b option gives a command to run on exit. If the *B*b starts with a *B**b, then it is called as a *B**bCommand, otherwise it is *BCHAIN*bed, with any parameters passed via the keyboard buffer. The options must be in lower case, and only the first letter is significant. So, for instance, to call *BScroll*b from another program, you could use the following: *B OSCLI "KEY0 |@-4 $.4to7 "+name$+" -quit Menu" *FX138,0,192 CHAIN "Scroll"*b This would run *BScroll*b and display the file *Bname$*b, and CHAIN the program *I$.3to7*i to display in teletext mode. On exit, it would return to the program *BMenu*b. On starting, if no *B-lp*b option is givem, *BScroll*b looks for an *B*lp*b printout program. The order it looks for one is: *Ilp*i, *I%.lp*i, *I%.lp.#*i, *I%.lp.**i, *I$.lp*i, *I:0.$.lp*i. The recommended place to put the *B*lp*b command is in the library in a subdirectory *I%.lp*i, with a file *I1*i being a default general purpose printer. With DFS, the best place would be in the *I$*i directory. *BScroll*b consists of the following files: *IScroll*i - The program *Idisp*i - Controls screen output giving display effects *IT/Scroll*i - This text file. NB: The current version will only display files which have each line terminated with CR. Version Notes: V1.09 Better use of memory V1.08 Relocates in very small memory systems V1.06 Added -chan option, tweeked command line parsing V1.03 Added -4 and -lp option V1.01 Added Archimedes capabilities