Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - scottmaccal

#1
Hi all,



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



Please feel free to stop by to talk newLISP!
#2
newLISP newS /
July 08, 2009, 05:31:52 PM
Hi newdep,



I'm wanted to use BASH $USER. Possible?
#3
newLISP and the O.S. /
July 08, 2009, 05:20:26 PM
newdep,



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



Thank you for the suggestion!
#4
newLISP newS /
July 08, 2009, 11:42:09 AM
Hi ale870,



Thank you for your response. I will give what you suggested at shot.
#5
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 on BASH scripts to run in Windows.
#6
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?
#7
newLISP newS / Never mind
June 04, 2009, 06:40:56 AM
Hi all,



Never mind. Solution found. I must have taken stupid pills this morning.
#8
newLISP newS / Correct Input
June 04, 2009, 05:37:55 AM
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 "yes "))

(if (= answer "no")
  (print "no"))
#9
newLISP in the real world /
May 20, 2009, 10:48:06 AM
Quote from: "Lutz"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">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 the user to be able to run an already defined and loaded function from within the newLISP interpreter without the user needing to type the () every time.



The program I am working on can be downloaded by: svn checkout http://faridayix.googlecode.com/svn/trunk/">http://faridayix.googlecode.com/svn/trunk/ faridayix-read-only A Mac is recommend if you have time/desire.



I am sure I breaking rules and probably doing bad design. But it is fun :-)
#10
newLISP in the real world /
May 20, 2009, 09:42:52 AM
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 screen:



What can I do for you? (cursor)
#11
newLISP in the real world /
May 17, 2009, 06:05:02 AM
Hi cormullion,



Thank you for you reply. I will give it a try.
#12
newLISP in the real world / Wow.
May 15, 2009, 12:48:27 PM
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 and press enter.
#13
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 this modification.
#14
newLISP newS /
April 04, 2008, 05:18:21 PM
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.
#15
newLISP newS /
April 04, 2008, 06:49:05 AM
Quote from: "Jeff"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 "What shape: ")
(set 'answer (read-line))

(if
  (answer "draw-circle")
  (circle))


Could you point me in the right direction?