Changes between Version 7 and Version 8 of Clojure Client Tutorial
- Timestamp:
- Aug 2, 2011 12:18:34 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Clojure Client Tutorial
v7 v8 39 39 Now it is time to learn to use the client. cd to the top level directory and typu "lein repl". If everything went smoothly you'll see something about no rlwrap and the prompt. 40 40 41 $ lein repl[[BR]] 42 which: no rlwrap in (/usr/staff/bin:/usr/ccs/bin:/opt/SUNWspro/bin:/bin:/usr/bin:/usr/openwin/bin:/usr/dt/bin:/usr/bin/X11:/usr/gfx:/usr/local/bin:/usr/sbin:/usr/ucb:/usr/bsd:/usr/vision/bin:/usr/grads/bin:/usr/java/bin:/u/kedwar10/bin:/home/vax7/u21/kedwar10/Software/cake/bin:/home/vax7/u21/kedwar10/Software:/home/vax7/u21/kedwar10/Software/LPG-td-1.0/:/home/vax7/u21/kedwar10/Software/q3map2/)[[BR]] 43 REPL started; server listening on localhost:2192. [[BR]] 41 {{{ 42 $ lein repl 43 which: no rlwrap in ... (output truncated) 44 REPL started; server listening on localhost:2192. 44 45 client.core=> 46 }}} 45 47 46 48 Note that the "core" namespace has loaded. You can launch ioquake with a specific map using the "run-ioquake" function (located in utilities.clj). Type (doc run-ioquake) to see the documentation. 47 49 48 client.core=> (doc run-ioquake)[[BR]] 49 client.utilities/run-ioquake[[BR]] 50 {{{ 51 client.core=> (doc run-ioquake) 52 ------------------------- 53 client.utilities/run-ioquake 50 54 ([level] [path level]) 51 This function launches ioquake with the specified level, if the path to ioquake is hardcoded into this function, type '(run-ioquake <level>)' where <level> is a map in the maps folder of ioquake, else you must provide the path.[[BR]] 52 nil 55 This function launches ioquake with the specified level, if the path to ioquake is hardcoded into this function, type '(run-ioquake <level>)' 56 where <level> is a map in the maps folder of ioquake, else you must provide the path. 57 nil 58 }}} 53 59 54 60 For example: 61 62 {{{ 55 63 client.core=> (run-ioquake "/home/vax7/u21/kedwar10/Projects/Quagents/quagents/ioquake3/build/release-linux-i386/ioquake3.i386" "firstroom") 56 64 #<UNIXProcess java.lang.UNIXProcess@2a5ab9> 65 }}} 57 66 58 67 Since I already have the path predefined, however, this will also work: