Search found 20 matches

by scottmaccal
Wed Aug 05, 2009 11:43 am
Forum: newLISP newS
Topic: Created newLISP IRC Channel - irc.freenode.net
Replies: 5
Views: 5013

Created newLISP IRC Channel - irc.freenode.net

Hi all,

I created a newLISP IRC channel @ irc.freenode.net. More information about freenode can be found here: http://freenode.net/.

Please feel free to stop by to talk newLISP!
by scottmaccal
Thu Jul 09, 2009 12:31 am
Forum: newLISP newS
Topic: BASH and newLISP variable availability inline code
Replies: 6
Views: 5097

Hi newdep,

I'm wanted to use BASH $USER. Possible?
by scottmaccal
Thu Jul 09, 2009 12:20 am
Forum: newLISP and the O.S.
Topic: CYGWIN - newLISP Compile from Stable Source Possible?
Replies: 5
Views: 3915

newdep,

You helped me remember gnuwin32 and I think it will work for what I am trying to accomplish.

Thank you for the suggestion!
by scottmaccal
Wed Jul 08, 2009 6:42 pm
Forum: newLISP newS
Topic: BASH and newLISP variable availability inline code
Replies: 6
Views: 5097

Hi ale870,

Thank you for your response. I will give what you suggested at shot.
by scottmaccal
Wed Jul 08, 2009 6:39 pm
Forum: newLISP and the O.S.
Topic: CYGWIN - newLISP Compile from Stable Source Possible?
Replies: 5
Views: 3915

CYGWIN - newLISP Compile from Stable Source Possible?

Hi all, I did a search on the board and from what I could gather newLISP was at one time supported in CYGWIN? Is it possible to compile the latest stable newLISP source in CYGWIN? If so, does anyone have a networked resource online they could share? I'm trying to get my newLISP program that depends ...
by scottmaccal
Mon Jun 08, 2009 1:56 am
Forum: newLISP newS
Topic: BASH and newLISP variable availability inline code
Replies: 6
Views: 5097

BASH and newLISP variable availability inline code

Hi all,

I was wondering if it was possible to read a variable with read-line and make that variable available for a newLISP code or vice versa?
by scottmaccal
Thu Jun 04, 2009 1:40 pm
Forum: newLISP newS
Topic: Correct Input
Replies: 1
Views: 2454

Never mind

Hi all,

Never mind. Solution found. I must have taken stupid pills this morning.
by scottmaccal
Thu Jun 04, 2009 12:37 pm
Forum: newLISP newS
Topic: Correct Input
Replies: 1
Views: 2454

Correct Input

Hi all, I'm trying to verify correct input. I want to make sure that the user either inputs yes or no before the program continues. How would this best be accomplished? So far I this code fragment: (print "yes or no") (set 'answer (read-line)) # WAS THE ANSWER YES OR NO? (if (= answer "yes") (print ...
by scottmaccal
Wed May 20, 2009 5:48 pm
Forum: newLISP in the real world
Topic: How to make newLISP quiet when it starts; start with ()
Replies: 10
Views: 24124

Cormullion was showing you how to change the newLISP command line behavior, but perhaps this explains what you really want to do: http://www.newlisp.org/newlisp_manual.html#read-line (define (main) (print "What can I assist you with? ") (set 'answer (read-line))) ) Hi Lutz, in a nutshell I'd like t...
by scottmaccal
Wed May 20, 2009 4:42 pm
Forum: newLISP in the real world
Topic: How to make newLISP quiet when it starts; start with ()
Replies: 10
Views: 24124

Hi cormullion, I tried your suggestions and I couldn't get them to work. Perhaps I am not understanding. Here is some code that I hope is a little clearer. (define (main) (print "What can I assist you with? ") code that will place (cursor) after the question ) Result of evaluated function main on sc...
by scottmaccal
Sun May 17, 2009 1:05 pm
Forum: newLISP in the real world
Topic: How to make newLISP quiet when it starts; start with ()
Replies: 10
Views: 24124

Hi cormullion,

Thank you for you reply. I will give it a try.
by scottmaccal
Fri May 15, 2009 7:48 pm
Forum: newLISP in the real world
Topic: How to make newLISP quiet when it starts; start with ()
Replies: 10
Views: 24124

Wow.

Hi all, Wow, a flood of responses right away. Thank you! What I'm really trying to do is have (cursor) after a print. (print "Input function please ") (cursor) I would like a function to be called by input without the user having to worry about typing the (). They can just input the function name an...
by scottmaccal
Fri May 15, 2009 4:53 pm
Forum: newLISP in the real world
Topic: How to make newLISP quiet when it starts; start with ()
Replies: 10
Views: 24124

How to make newLISP quiet when it starts; start with ()

Hi all, When I start newLISP from the shell, I'd like it to be quiet. No newLISP v.9.4.5 on BSD IPv4, execute 'newlisp -h' for more info message. I would also like newLISP to start with () with the cursor in the middle. Does newLISP use something similar to a .emacs? What is the best way to make thi...
by scottmaccal
Sat Apr 05, 2008 12:18 am
Forum: newLISP newS
Topic: Input from Parameter
Replies: 10
Views: 4263

Jeff,

Thank you! That info was a big help.

Cormullion,

Thanks for sharing the GUI code. Even though it looks quite complex, it is remarkable to me how readable it is.
by scottmaccal
Fri Apr 04, 2008 1:49 pm
Forum: newLISP newS
Topic: Input from Parameter
Replies: 10
Views: 4263

You will also want to cast them to integers or floats using (int foo) or (float foo). How would I go about handling things that are not digits? My latest challenge is writing code that will call a defined function after the user has inputed a certain sting. This is the code I have so far: (print "W...
by scottmaccal
Fri Apr 04, 2008 1:14 am
Forum: newLISP newS
Topic: Feature request: scanf
Replies: 4
Views: 2590

Did you read my other post about using (read-line) for getting input from user? You can combine that and regular expressions with 'regex' or 'parse' to parse out the components from the input. Lutz, I did. Thank you again. I can't believe I missed that in the manual! :-) Thank you for creating and ...
by scottmaccal
Thu Apr 03, 2008 11:53 pm
Forum: newLISP newS
Topic: Input from Parameter
Replies: 10
Views: 4263

Lutz wrote:You can use (read-line) to get input from stdin/keyboard. This will work only in a command shell/terminal window, not in the console window of the newLISP-GS Java front-end installed on Windows or Mac OS X.
Thank you.

That gets me heading in the right direction.
by scottmaccal
Thu Apr 03, 2008 1:28 am
Forum: newLISP newS
Topic: Feature request: scanf
Replies: 4
Views: 2590

Re: Feature request: scanf

Jeff wrote:Lutz,

May we have a fast scanf-style reader to parse input in the next release? Something the opposite of format, perhaps?
I second that.
by scottmaccal
Thu Apr 03, 2008 1:07 am
Forum: newLISP newS
Topic: Input from Parameter
Replies: 10
Views: 4263

Re: "format" function

the standard way to do variable interpolation inside a given string, as far as I understand, is by using the "format" function. (write-line (format "blablabla %s blabla %d" string_var decimal_num_var)) Thanks for the response cormullion and lithper! My question now is how do I go about getting inpu...
by scottmaccal
Wed Apr 02, 2008 6:19 pm
Forum: newLISP newS
Topic: Input from Parameter
Replies: 10
Views: 4263

Input from Parameter

Greetings, I am trying to come up with a way to get user input in the form of (circle number1 number2) where circle is a defined function and the number1 and number2 are input from the user. I would like number1 and number2 input to go into a (write-line) function that already has characters in it. ...