Unable to copy/paste in MinGW shell

Right-click on the title bar of the command window and select ‘Properties’, then on the ‘Options’ tab tick the box for the ‘QuickEdit mode’, then click ‘Ok’. After that you can paste text from the clipboard using the right mouse-button, highlight text while holding down the left mouse-button and copy selected text using the ENTER … Read more

Capturing Ctrl-c in ruby

The problem is that when a Ruby program ends, it does so by raising SystemExit. When a control-C comes in, it raises Interrupt. Since both SystemExit and Interrupt derive from Exception, your exception handling is stopping the exit or interrupt in its tracks. Here’s the fix: Wherever you can, change rescue Exception => e # … Read more

Detecting CTRL+C in Node.js

If you’re trying to catch the interrupt signal SIGINT, you don’t need to read from the keyboard. The process object of nodejs exposes an interrupt event: process.on(‘SIGINT’, function() { console.log(“Caught interrupt signal”); if (i_should_exit) process.exit(); }); Edit: doesn’t work on Windows without a workaround. See here

techhipbettruvabetnorabahisbahis forumueduedueduedueduedusedusedusedusedu