News for hackers. Stuff that matters.
Re:Ctrl-C by krallja on Saturday August 06, 2022 @11:46AM (#32369096)
No, you misread the article.

Open a Ruby interpreter (`irb`). Type `i=0; loop { i += 1 }`. Press Ctrl+C.

* Irb is still running.

* Your infinite loop has been stopped.

Type `i`:

* The REPL state preserved as much progress as it could when you aborted the run.

Now do the same thing in `sh`. Now `python`. Now `psql`. All handle Ctrl+C in the way the article mentioned!

Re:Ctrl-C by thayne on Saturday August 06, 2022 @12:28PM (#32369468)
So what is an example of an application that doesn't do this, that you would want to?