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!
Search found 20 matches
- Wed Aug 05, 2009 11:43 am
- Forum: newLISP newS
- Topic: Created newLISP IRC Channel - irc.freenode.net
- Replies: 5
- Views: 5033
- Thu Jul 09, 2009 12:31 am
- Forum: newLISP newS
- Topic: BASH and newLISP variable availability inline code
- Replies: 6
- Views: 5115
- Thu Jul 09, 2009 12:20 am
- Forum: newLISP and the O.S.
- Topic: CYGWIN - newLISP Compile from Stable Source Possible?
- Replies: 5
- Views: 3934
- Wed Jul 08, 2009 6:42 pm
- Forum: newLISP newS
- Topic: BASH and newLISP variable availability inline code
- Replies: 6
- Views: 5115
- Wed Jul 08, 2009 6:39 pm
- Forum: newLISP and the O.S.
- Topic: CYGWIN - newLISP Compile from Stable Source Possible?
- Replies: 5
- Views: 3934
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 ...
- Mon Jun 08, 2009 1:56 am
- Forum: newLISP newS
- Topic: BASH and newLISP variable availability inline code
- Replies: 6
- Views: 5115
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?
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?
- Thu Jun 04, 2009 1:40 pm
- Forum: newLISP newS
- Topic: Correct Input
- Replies: 1
- Views: 2471
Never mind
Hi all,
Never mind. Solution found. I must have taken stupid pills this morning.
Never mind. Solution found. I must have taken stupid pills this morning.
- Thu Jun 04, 2009 12:37 pm
- Forum: newLISP newS
- Topic: Correct Input
- Replies: 1
- Views: 2471
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 ...
- 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: 24170
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...
- 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: 24170
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...
- 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: 24170
- 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: 24170
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...
- 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: 24170
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...
- Sat Apr 05, 2008 12:18 am
- Forum: newLISP newS
- Topic: Input from Parameter
- Replies: 10
- Views: 4298
- Fri Apr 04, 2008 1:49 pm
- Forum: newLISP newS
- Topic: Input from Parameter
- Replies: 10
- Views: 4298
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...
- Fri Apr 04, 2008 1:14 am
- Forum: newLISP newS
- Topic: Feature request: scanf
- Replies: 4
- Views: 2606
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 ...
- Thu Apr 03, 2008 11:53 pm
- Forum: newLISP newS
- Topic: Input from Parameter
- Replies: 10
- Views: 4298
- Thu Apr 03, 2008 1:28 am
- Forum: newLISP newS
- Topic: Feature request: scanf
- Replies: 4
- Views: 2606
Re: Feature request: scanf
I second that.Jeff wrote:Lutz,
May we have a fast scanf-style reader to parse input in the next release? Something the opposite of format, perhaps?
- Thu Apr 03, 2008 1:07 am
- Forum: newLISP newS
- Topic: Input from Parameter
- Replies: 10
- Views: 4298
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...
- Wed Apr 02, 2008 6:19 pm
- Forum: newLISP newS
- Topic: Input from Parameter
- Replies: 10
- Views: 4298
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. ...