Giter Club home page Giter Club logo

Comments (5)

kkawakam avatar kkawakam commented on August 29, 2024

I don't think I can use default signal handling. I will probably implement some type of handler for C-z and C-\ so that we can reset the terminal attributes before generating the proper signals.

I am looking at GNU readline's doc and it seems like readline takes this approach.

from rustyline.

birkenfeld avatar birkenfeld commented on August 29, 2024

As far as I could see, there is a #define in libreadline called HANDLE_SIGNALS that determines if ISIG is cleared or not. Not sure what the default is though.

from rustyline.

kkawakam avatar kkawakam commented on August 29, 2024

It looks like that is defined by default in http://git.savannah.gnu.org/cgit/readline.git/tree/rlconf.h so I'd be surprised if the compiled library version you are using does not have that defined.

Looking at https://cnswww.cns.cwru.edu/php/chet/readline/readline.html#SEC44 and http://git.savannah.gnu.org/cgit/readline.git/tree/signals.c I do see that the readline's signal handler cleans up the terminal state and and then re-raises the signal.

from rustyline.

gwenn avatar gwenn commented on August 29, 2024

I try to handle Ctrl-Z in this PR.
But Ctrl-Z must be typed twice and can't find why...
An explanation may be found here ?

from rustyline.

gwenn avatar gwenn commented on August 29, 2024

2.0 released

from rustyline.

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.