|
|
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 EDITORNote 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''.