svorgodne Posted July 16, 2020 Posted July 16, 2020 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 Quote
ReMark Posted July 16, 2020 Posted July 16, 2020 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 Quote
svorgodne Posted July 16, 2020 Author Posted July 16, 2020 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 Quote
dlanorh Posted July 16, 2020 Posted July 16, 2020 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") Quote
svorgodne Posted July 16, 2020 Author Posted July 16, 2020 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. Quote
Recommended Posts
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.