home *** CD-ROM | disk | FTP | other *** search
- view - view a text file
-
- SYNOPSIS
- view filename
-
- DESCRIPTION
- A text editor without any editing functions. Very quick; useful
- for looking at text files, especially C programs.
-
- NOTE: Requires NANSI.SYS, or any terminal driver supporting the insert and
- delete line functions.
-
- COMMANDS
- q quit, return to DOS
-
- Arrows move cursor, scrolling horizontally or vertically
- as required.
- page up, down move screen up/down 20 lines in file.
- ^, $ Move cursor to first, last char on line.
- Home, end move cursor to start, end of line.
- Ctrl-home,
- ctrl-end move cursor to start, end of file.
-
- % If cursor is on a bracket or parenthesis, moves cursor
- to matching bracket or parenthesis; useful for finding
- your way around in a C program. If no match, rings bell.
-
- / search forwards; prompts for search string at top of screen.
- Newlines (^J) may be included in search string.
- Hit <enter> when done entering search string.
- Case sensitive. Positions cursor at start of match.
- Search wraps around end of file if needed; bell is sounded if
- no match.
-
- ? search backwards; same as above.
-
- n Repeat last search.
- N Repeat last search, but reverse direction.
-
- f(char) Forward in line to next occurrence of char; beeps if not found.
- b(char) Backward in line to next occurrence of char.
-
- Any command may be prefixed with a repeat count just by typing
- a number (<32000); no conformation is given while typing the number.
-
-
- Written mostly to demonstrate how blindingly fast NANSI.SYS is.
- The console is set to raw mode, and all screen output goes through
- DOS. If you thought ANSI.SYS was sluggish, you were right- NANSI.SYS
- (used in RAW mode) is about two orders of magnitude faster.
-
- BUGS
- If no filename is given on the command line, tries to edit a file
- named "=", and gives the error message "=: no such file."
-
- The start- and end-of-line functions screw up on the last line
- of the file. Typing ctrl-end restores normality.
-
- Since view finds out the screen size by moving the cursor to (132, 50),
- and then inquiring the cursor position, it depends on the clipping
- behavior of the console driver.
-
- Problems should be reported to Dan Kegel, 1-60.
-
- This version generated in October, 1985.
-
-
-