Using GNU Readline; how can I add ncurses in the same program?

后端 未结 6 1206
醉酒成梦
醉酒成梦 2020-12-01 07:57

The title is a bit more specific than my actual goal:

I have a command-line program which uses GNU Readline, primarily for command history (i.e. retrieving previous

6条回答
  •  半阙折子戏
    2020-12-01 08:40

    So it turns out that gdb uses both readline and ncurses. If you're interested in doing this, I recommend that you check out their implementation: http://sourceware.org/git/?p=gdb.git;a=blob;f=gdb/tui/tui-io.c

提交回复
热议问题