---------- Forwarded message ----------
From: dean <deangwillia...@gmail.com>
Date: 5 January 2017 at 22:15
Subject: trapping key in case statement
To: picolisp@software-lab.de


I can match the (key) value of backspace to BS using 'if' but am not sure
how to using 'case'

(setq BS "^?")
(setq Key (key))
(if (= Key BS) (prinl "yes BS")) #works fine when backspace is pressed
(case Key ("a" (prinl "a pressed"))) #works fine when "a" is pressed
(case Key (BS (prinl "BS pressed"))) #???

Reply via email to