Differences
This shows you the differences between two versions of the page.
| Next revisionBoth sides next revision |
using_chicken_on_sdf [2021/03/17 20:41] – created hc9 | using_chicken_on_sdf [2021/03/17 20:42] – [Install Eggs] hc9 |
---|
If the install was successful, we can check whether everything's working. Start the Chicken interpreter with csi and run this Scheme program to load the readline egg: | If the install was successful, we can check whether everything's working. Start the Chicken interpreter with csi and run this Scheme program to load the readline egg: |
| |
(use readline) | ''(use readline)'' |
| |
Then run this program to use readline in this interpreter session: | Then run this program to use readline in this interpreter session: |
| |
(current-input-port (make-gnu-readline-port)) | ''(current-input-port (make-gnu-readline-port))'' |
| |
Now check if you have readline support in the interpreter. Run a trivial program like 42 and then hit the Up key and check if "42" gets entered at the prompt. If so, the readline egg is installed and working. You can put the first two Scheme programs (the ones that load the egg and make it work) into a ~/.csirc file and the interpreter will run those programs at the beginning of each session. | Now check if you have readline support in the interpreter. Run a trivial program like 42 and then hit the Up key and check if "42" gets entered at the prompt. If so, the readline egg is installed and working. You can put the first two Scheme programs (the ones that load the egg and make it work) into a ~/.csirc file and the interpreter will run those programs at the beginning of each session. |
| |
$Id: chicken.html,v 1.15 2011/08/29 06:43:41 ab9 Exp $ [[http://sdf.org/?tutorials/chicken|Using Chicken on SDF]] - traditional link (using [[wp>Revision_Control_System|RCS]]) | $Id: chicken.html,v 1.15 2011/08/29 06:43:41 ab9 Exp $ [[http://sdf.org/?tutorials/chicken|Using Chicken on SDF]] - traditional link (using [[wp>Revision_Control_System|RCS]]) |
| |
| |