Circumflex accent to c IN LISP

I study lisp and I found this: (enlarge) ^ C ^ C, but the text does not explain it, and I searched for “^ C ^ C” in other places, but did not find anything. Can someone here help me?

(I'm still learning English, sorry if I wrote something wrong)

+6
source share
4 answers

"^ C ^ C" is not AutoLisp; it will be for / - it is a macro language for the menu, etc.

Caret-C means "CTRL-C.

What does he do in macro language:

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

In AutoCAD, we press the ESC key (twice to cancel the command). ^ C ^ C is "good practice." -ie Before we release or launch a new command, we will cancel any current command.

The equivalent in AutoLisp will be:

 (command) (command) 

or

 (repeat 2 (command)) 
+5
source

I think they refer to the ctrl-c control character that you enter after entering (zoom in) in the REPL.

+2
source

As others have said, this most likely means Ctrl + C, especially if you use emacs, where two presses of Ctrl + C (usually written “Cc Cc” in the emacs convention) means “run this using the default interpreter” in some language modes.

+2
source

If I'm not mistaken, ^C usually a modified keystroke for Ctrl + C.

It will not work in the console on Windows, as Ctrl + C also means “break (execution)”, but if you press Ctrl + V, Ctrl + P, etc., you will see what I mean.

+1
source

Source: https://habr.com/ru/post/892861/


All Articles