I understand that grread with bit 8 (allkeys) set should allow my routine to capture the escape key being pressed. However, the routine below still gives me an "; error: Function cancelled", when I press the escape key.
What am I missing here?
(defun c:test2()
(while (and ;loop until escape is pressed
(setq readinfo (grread T (+ 1 2 4 8)))
(not (and (= 2 (car readinfo))
(= 27 (cadr readinfo))
)
)
)
(princ (strcat "\n" (vl-princ-to-string readinfo)))
)
(princ (strcat "\n\n" (vl-princ-to-string readinfo)))
(princ)
)
Mike