From: Andrew Lee Date: 2008-10-14T07:22:08+09:00 Subject: Re: Unable to trap C-z, C-y, C-s and C-q Nit Khair wrote: > Nit Khair wrote: >> I need to trap ^Y, ^Z, ^S, ^Q etc in my app. Have googled a lot but >> unable to find anything. >> > > I finally found a workaround. > On unix prompt did: > > stty dsusp undef > stty susp undef > > Now my program catches c-y and c-z. However, is there are pure ruby way > of doing this. googling reveals examples where "system stty ..." is > being used. You can't catch SIGKILL or SIGSTOP ... has nothing to do with Ruby.