Using cscope on MacOS X

I downloaded cscope 15.6 on macOSX.

But when I try to run it in a MacOS or Tterm terminal, the UP / DOWN key does not work. I cannot move it from one request to another in the cscope Interface.

Only CTRL-P CTRL-N is executed.

Could you tell me how I can fix my problem?

Thanks.

+3
source share
3 answers

Very strange ... I have cscope 15.6 installed in / usr / bin on MacOS X 10.5.7, which means it had to ship with Xcode (new machine, I do not put programs in / usr / bin, except extreme provocation).

Is there a reason not to use the Xcode version - since it works?


cscope $, cscope /opt/local/bin/cscope; , cscope. , /opt/local/bin/cscope XCode?

, . - , /usr/bin/cscope. , , - PATH , /usr/bin /opt/local/bin. , /opt/local/bin/cscope, . ( , - /usr/gnu/bin/rm ( ), PATH /usr/bin/rm, , . , .

, , XCode Cscope? CScope XCode? Cscope XCode?

, , ... Xcode, . ; , . - , ( , ).


15.6 15.7a, Leopard (10.5.8), configure script, , , :

if gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -MT build.o -MD -MP -MF ".deps/build.Tpo" -c -o build.o build.c; \
    then mv -f ".deps/build.Tpo" ".deps/build.Po"; else rm -f ".deps/build.Tpo"; exit 1; fi
In file included from build.c:50:
/usr/include/ncurses.h:550:40: error: macro "cbreak" passed 1 arguments, but takes just 0
/usr/include/ncurses.h:575:44: error: macro "erasechar" passed 1 arguments, but takes just 0
/usr/include/ncurses.h:611:43: error: macro "killchar" passed 1 arguments, but takes just 0
make[2]: *** [build.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

cscope SourceForge - , o/s, Snow Leopard ( , , - Leopard Snow Leopard).

0

drivel , : http://anylinux.net/post/2453.html

:

--- src/constants.h.orig    2011-01-09 23:35:35.000000000 +0800
+++ src/constants.h 2011-01-09 23:35:55.000000000 +0800
@@ -103,7 +103,7 @@
 #define INCLUDES   8
 #define    FIELDS      9

-#if (BSD || V9) && !__NetBSD__ && !__FreeBSD__
+#if (BSD || V9) && !__NetBSD__ && !__FreeBSD__ && !__APPLE__
 # define TERMINFO  0   /* no terminfo curses */
 #else
 # define TERMINFO  1
+5

I had the same problem. If you type “?”, You will get a help menu that shows that pressing ^ N and ^ P moves the cursor up / down.

+1
source

Source: https://habr.com/ru/post/1711752/


All Articles