Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have the following loop to run until the user is finished with the command. An <Enter> key works as I want.
(while (= (getvar "cmdactive") 1) (command pause) )
... continue with more code
... however, quite often the user hit <esc> key instead.
Can't I trap for this - with something like the following?
(while (= (getvar "cmdactive") 1) (vl-catch-all-error-p (vl-catch-all-apply 'command (list pause))) )
... continue with more code
Your thoughts?
Solved! Go to Solution.