Jump to content

Recommended Posts

Posted

Hello everyone,

 

I would like to know wehat is the "terpri" autolisp command working for and some examples of that.

 

Can anybody help me?

 

thanks n advance

Posted

terpri prints a newline to the command line.

(terpri)

The terpri function is not used for file I/O. To write a newline to a file, use prin1 , princ , or print .

Return Values:

nil

Posted

Oh sorry ReMark.

 

First of all, thanks for your answer.

 

I should have said, I omitted to say I looked for the answer before and found it in HELP from AutoCAD.

 

Still don't understand what is its purpose.

 

Do you have an explicit example?

 

Thanks in advance

Posted

It stands for terminal print (terminal = screen), and is a throw back to the very early versions of autocad. It is still in autolisp as it provides backward compatability with early autolisp programs and could be considered the same as (princ "\n")

 

Posted
1 hour ago, dlanorh said:

It stands for terminal print (terminal = screen), and is a throw back to the very early versions of autocad. It is still in autolisp as it provides backward compatability with early autolisp programs and could be considered the same as (princ "\n")

 

 

Thanks dlanorh. That was very explicit. 👍

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...