Search code examples
lispautocadautolisp

Circumflex accent before c IN LISP


I'm studing lisp and I found this: (zoom in)^C ^C , but the text don't explain it, and I searched "^C ^C" in other places but didn't found anything. Can someone here help-me?

(I'm studying english yet, sorry if I wrote anything wrong)


Solution

  • "^C^C" is not AutoLisp; that would be for/is the macro language for menus and such.

    Caret-C does "mean" CTRL-C.

    What it does in the macro language:

    ^c means: cancel
    ^c^c means: cancel twice.
    

    In AutoCAD we hit the ESC key (twice to cancel a command). The ^C^C is "good practice". -i.e. Before we issue or start a new command we cancel any current command.

    The equivalent in AutoLisp would be:

    (command) (command)
    

    or

    (repeat 2 (command))