Andrew Lee
10/13/2008 10:25:00 PM
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.