DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Browsing through your code with cscope

Step 1: set up the environment

cscope is a screen-oriented tool that can only be used on terminals listed in the Terminal Information Utilities (terminfo) database. Be sure you have set the TERM environment variable to your terminal type so that cscope can verify that it is listed in the terminfo database. If you have not done so, assign a value to TERM and export it to the shell as follows:

   $ TERM=term_name export TERM

You may now want to assign a value to the EDITOR environment variable. By default, cscope invokes the vi editor. (The examples presented here illustrate vi usage.) If you prefer not to use vi, set the EDITOR environment variable to the editor of your choice and export EDITOR:

   $ EDITOR=emacs export EDITOR
Note that you may have to write an interface between cscope and your editor. For details, see ``Command line syntax for editors''.

If you want to use cscope only for browsing (without editing), you can set the VIEWER environment variable to pg and export VIEWER. cscope will then invoke pg instead of vi.

An environment variable called VPATH can be set to specify directories to be searched for source files. See ``Using viewpaths''.


Next topic: Step 2: invoke cscope
Previous topic: How to use cscope

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004