Line Displayer v40.0 ORIGINATOR: Jon Lindsay San Jose, CA (408) 272-4800 REVISED BY: Joe Field Hudson, NH 603-893-1983 days, 603-883-2823 evenings Function: Display ASCII file on console Usage: Like CP/M's resident TYPE command (only better) Version 40.0 (7-19-86) - Generic Version 40.0 was a significant modification of LD 2.26. All Kaypro specific features were removed to broaded it's usage on a greater variety of machines. The following is a list of the changes and additions that were made: Removed: Autojump to directory on exit from program. Direct bios calls (didn't speed up my system), to make more universal. Added: Printing of current page (P) or range of lines, Pn to m. Able to turn off/on line numbers (O), while retaining reference. Auto scroll (S) (continuous until char other than digit), the value sets speed of scroll. 0 = slowest, 9 = fastest. Ability to get another file while in LD. Increased file sizes, by allowing to overwrite ccp, but not bdos. Now failsafe, used to overflow BDOS area if file was too long. Announce shortened file when needed. If short file, exit without warm boot for speed of exit. Announce end of text area, disallow paging past end. Filter out control characters (Wordstar) so that screen and printer don't get confused. Changed: Changed (L) cmd to start lines at top of crt, not middle. Set number of lines displayed to 23. (+) provides same function as cr (forward page). Fixed extraneous character on return to CPM by using calls 1 and 11 instead of 6 and then blanking out extra character. Moved most of the variables to the end of the program. Drawbacks: Files longer than the TPA + CCP are cut short. Can't specify drive/ user area. Must be current area. Unable to view directory when inside program. Version 1.9 (11-14-85) - Kaypro only (KPLD19.COM) Version 1.9 has been speeded up by adjusting the method of line and string searching, and I/O usage. Otherwise, it is similar to version 1.5. Also, a peculiar problem was side- stepped: by using character input functions (BDOS f.# 1 and 6) and BDOS f.# 10, the latter would produce mysterious (single) characters, the same as the last entered character through BDOS #1 or 6. Function 10 was used with the L(ine) and F(ind) searches. The algorithm was simulated with BIOS calls and the "problem" disappeared. Version 1.5 (10-18-85) This program makes viewing an ASCII file a simple and flexible convenience. Each line is numbered. You can quickly go to the top of the text or the bottom, or you may jump directly to a particular line. String searches are also permitted. It has particular value in reviewing a document created by WordStar in that several of the common printing features (underlining and boldfacing) are displayed on the screen rather than just the control codes for the particular feature. This latest version is submitted in two forms and has the added feature of "search next string": 1) KPLD15 - is designed for the Kaypro 2X, 4, 10 or equivalent. It has installed code for underlining, reverse video, half bright and blinking. 2) LD15 - is a somewhat more generic form in which codes for underlining, reverse video and half bright are marked within the COM file. The marker (see below) immediately precedes the code. Though configured for the Kaypro, it should be easily adaptable to any CP/M-80 computer. If the Kaypro video features are not desired or cannot be run as is, the locations of the various codes follow which can be used to change the code. Six (6) bytes have been allowed for each video function code, with each code sequence ending with a dollar sign ($). Use DDT to access LD15.COM: A>DDT LD15.COM (cr) and then the DDT 'D' command to display the COM file code. The DDT 'S' command lets you substitute your own computer code if necessary. Starting location Function ASCII code marker (Hex) 181 clear screen cls-> 3D2 half bright ON hbon-> 3EF half bright OFF hboff-> 40B underline ON ulon-> 428 underline OFF uloff-> 47E cursor ON curon-> 49C cursor OFF curoff-> 4B8 reverse vid. ON rvon-> 4D5 reverse vid. OFF rvoff-> Where your computer will not do any of the above, if necessary you can place the '$' in the first position after each marker in order to bypass that screen function. Version 1.2 This Line Displayer (LD) was designed on and for the Kaypro 2X, or equivalent (ADM-3A). It's a simple ASCII text viewer that can be used in place of CP/M's TYPE command and employs the following features for added flexibility: FEATURES: 1) Viewing page by page - forward/backward single step 2) Jump to specified line 3) (Unique) string search 4) Shows WordStar's Underline & Boldface 5) Jump to start (Top) or end (Bottom) of text Input commands: Lnnnn = Will go to line nnnn, (e.g., L231) - = backup 1 page CR = forward 1 page space bar or . = forward 1 line T = top of text B = bottom of text E = erase screen and print next page Fstring = Find string (e.g., FHello) U/L case matters! control-L = continue search for string <-- NEW Q = quit and return to CP/M ? = print this menu Comment: Programs like this are common. However, I've noticed several that appear to have been written in a high level language and are rather sizeable, the most recent to come to mind being ZTYPE. Ergo, here is a smaller one. While not perfect, I hope you find it handy. If anyone is interested in the latest source code, I can be reached at the above number or through DC-To-Light RBBS (408) 262-5150. J.L.