GithubHelp home page GithubHelp logo

Readline without rlwrap about ciao HOT 5 OPEN

ciao-lang avatar ciao-lang commented on August 23, 2024
Readline without rlwrap

from ciao.

Comments (5)

jfmc avatar jfmc commented on August 23, 2024 1

Thanks! That is a good motivation.

I had a look and plugging it into the Ciao toplevel is not straightforward (e.g., proper interaction between readline input and the term parser for queries). I'll keep this issue open until there is some progress.

from ciao.

jfmc avatar jfmc commented on August 23, 2024

Linking with readline is currently not implemented, but it does not seem very complicated. Would there be some advantage in readline lib vs rlwrapping? rlwrap was added as a quick fix to enhance Ciao usage from a terminal when outside Emacs.

from ciao.

suhr avatar suhr commented on August 23, 2024

It would be definitely much more convenient for people who do not use Emacs.

from ciao.

jfmc avatar jfmc commented on August 23, 2024

The command ciao without arguments starts ciaosh under rlwrap (if available). Would it be enough? We'd like to know if there is some missing feature in the rlwrap solution.

from ciao.

suhr avatar suhr commented on August 23, 2024

We'd like to know if there is some missing feature in the rlwrap solution.

Actually there is. If you enter

?- X = (1,
2).

then there will be two queries in the history: X = (1, and 2).. The reason is simple: rlwrap knows nothing about Prolog syntax, it understands only lines.

By contrast, this is exactly one query in swipl.

from ciao.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.