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

后端 未结 6 1197
醉酒成梦
醉酒成梦 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:41

    I'm not sure which version you tried. As of today(2012.09.14) It is very simple, We just need to hook our custom function to following function pointers.

    rl_getch_function
    rl_redisplay_function
    rl_completion_display_matches_hook
    

    I did something reasonable here.

提交回复
热议问题