Lightweight GNU readline alternative

后端 未结 2 772
野性不改
野性不改 2021-01-02 04:40

I am looking for a GNU readline alternative. It comes with a lot of features but only couple of them are useful to me as explained below -

I am working on a interact

2条回答
  •  温柔的废话
    2021-01-02 04:57

    This is an admirable goal I think :-)

    Perhaps Linenoise, libedit/editline or tecla would fit the bill?

    Of those probably libedit is the most widely used - e.g. postgreqsql client shell and various BSD utilities for Kerberos and ntp (although for the upstream sources it may not be the default line editing library for compilation due the to widespread use of libreadline on Linux). There are a couple of slightly different versions of libedit/editline as you'll see if you read some of those references and do some further research.

    Cheers, and good luck with your project.

提交回复
热议问题