Message 1 of 9
Display "/" in getkword function as a choice?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I'm writing a lisp containing a "getkword" function, which I want user to choose +,-,*,/ one of it and then let the lisp run. The routine runs just fine, however I found that the slash "/" cannot be displayed as a choice. Here is the routine of the "getkword" part:
(initget "+ - * /")
(setq s_cf
(cond
(
(getkword
(strcat "\nChoose [+/-/*//] <"
(setq s_cf
(cond ( s_cf ) ( "+" ))
)
">: "
)
)
)
( s_cf )
)
)
The (strcat "\nChoose [+/-/*//] <" part is the problem here, as "/" functioned as a separation of the choice, I tried add quotation marks and failed, is it possible to display it as a choice perfectly?
Thanks