Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cscope problem - Search results invisible

Tags:

c

cscope

I am facing a weird problem. While browsing the C code of a project, the "Find this text string:" output results in a positive match, but the text is invisible [only the search results are invisible and not the menu]. The cursor moves up and down the list of results. Some of the lines are visible sometimes as you can see in the screen-shot below. I did try to change the background color [from black to white], removed any instance of cscope.out in the project folder, rebuilt the database.

The system is FC4. The cscope version in use is 15.7a.

Is this a known bug? Any solutions?

Screen-shots: The screen-shots are taken using Putty. Same behavior is seen on gnome-terminal, konsole.

http://img2.pict.com/05/11/00/2823072/0/cscope01.jpg

http://img2.pict.com/53/0e/38/2823075/0/cscope02.jpg

P.S: Also posted in ubuntu forums - http://ubuntuforums.org/showthread.php?t=1402448

like image 353
Shrinidhi Avatar asked Jan 23 '23 14:01

Shrinidhi


1 Answers

Well, found the solution. The problem is with the format of the file. If the files have Ctrl+M at the end of the line, cscope will have issues with them.

Do a dos2unix conversion on all the test files in the directory. This should solve the problem.

:-)

like image 125
Shrinidhi Avatar answered Feb 04 '23 14:02

Shrinidhi