开发者

Circumflex accent before c IN LISP

开发者 https://www.devze.com 2023-03-21 02:41 出处:网络
I\'m studing lisp and I found this: (zoom in)^C ^C , but the text开发者_JAVA百科 don\'t explain it, and I searched \"^C ^C\" in other places but didn\'t found anything. Can someone here help-me?

I'm studing lisp and I found this: (zoom in)^C ^C , but the text开发者_JAVA百科 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)


"^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))


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


As others have said, most likely it means Ctrl+C, especially if you're using emacs, where two Ctrl+C presses (usually written "C-c C-c" in the emacs convention, though) means "run this using the default interpreter" in some language modes.


If I'm not mistaken, ^C usually represents the "Ctrl+C" modified keypress.

It won't work in a console on Windows, as Ctrl+C also means "break (execution)", but if you press Ctrl+V, Ctrl+P, etc., you'll see what I mean.

0

精彩评论

暂无评论...
验证码 换一张
取 消