Texas Instruments TMS370 Network Card User Manual


 
Showing and Operating Within a Text File
3-18
Operating in the Display Window
3.11.1 Finding Character Strings Within a Text File — the Find Command
The
find
command allows you to search for a string of characters in the text
file. When the programmer prompts you for a character string, type a string up
to 30 characters long. The programmer begins at the current position and
searches for the string.
If the programmer reaches the end of the file without finding the string, it wraps
around to the beginning of the file and searches from there to the original cur-
sor position.
If the string is not found anywhere, the cursor simply remains in its current posi-
tion. If the string is found, the window is scrolled if necessary, and the cursor
is moved to the start of the target string.
3.11.2 Finding the Next Occurence of Character String — the Next Command
With the
next
command you can search for the next occurrence of a string that
was previously found with the find command. When you select the next com-
mand, the programmer begins one space past the cursor position and begins
searching for the same string that was used by the most recent find command.
The search proceeds exactly as in the find command. If no find command has
been used, the cursor does not move.
3.11.3 Positioning the Cursor at a Specific Line Number — the Line Command
The
line
command allows you to move to a specified line number in the file.
The programmer prompts you for the line number, with the current line as the
default.
Enter either an absolute line number or a relative offset from the current line.
If you type a + or – in front of the number, the offset is relative, the direction
indicated by the plus or minus. The programmer positions the cursor at the
specified line number, scrolling the window if necessary.
3.11.4 Positioning the Cursor at Top of a File — the Top Command
Use the
top
command to position the cursor on the first line of the file, scrolling
the window if necessary.
3.11.5 Positioning the Cursor at the Bottom of a File — the Bottom Command
Use the
bottom
command to position the cursor on the last line of the file, scroll-
ing the window if necessary.