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

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

    I've now put together a simple example program on GitHub: https://github.com/ulfalizer/readline-and-ncurses.

    It supports seamless and efficient terminal resizing and multibyte/combining/wide characters. The code has helpful comments.

    Screenshot below:

    Screenshot of program combining ncurses and readline

提交回复
热议问题