reset command-event back to normal?

Q&A's, tips, howto's

reset command-event back to normal?

Postby iho » Fri May 08, 2015 6:14 pm

Hi,

is it possible to reset command-event to normal, after having installed a special handler?
I have tried to reset it by setting it back to an fn which just returns a string, but I get a SIGSEGV if I do it.

Kind regards,

Ingo
iho
 
Posts: 4
Joined: Mon Apr 13, 2015 1:22 pm

Re: reset command-event back to normal?

Postby Lutz » Fri May 08, 2015 8:21 pm

Just do a:

Code: Select all
(command-event nil)


to cancel it. Same with error-event, prompt-event, reader-event and xfer-event.
Lutz
 
Posts: 5279
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California

Re: reset command-event back to normal?

Postby iho » Wed May 13, 2015 3:30 pm

Thanks Lutz!
iho
 
Posts: 4
Joined: Mon Apr 13, 2015 1:22 pm


Return to newLISP in the real world

Who is online

Users browsing this forum: No registered users and 1 guest

cron